[hibernate-dev] ORM DDL doesn't reflect BV constraints with validation mode CALLBACK

2018-02-04 Thread Gunnar Morling
Hi, If the JPA validation mode is set to CALLBACK, BV constraints such as @NotNull, @Size etc. are not reflected in the DDL created by ORM. Instead, in TypeSafeActivator, the BV constraints are only considered for DDL if the validation mode is DDL or AUTO [1]. CALLBACK is the safe way to ensure

Re: [hibernate-dev] Support for entities without default constructor

2018-02-04 Thread Gunnar Morling
I like it, but I think that's two separate concerns: * using byte code generation to improve performance of entity instantiations * avoiding the need for entities to have a parameterless constructor, emphasising the mandatory properties of an entity (by requiring them as constructor parameters)