[hibernate-dev] [HV] Programmatic definition of method level constraints

Hardy Ferentschik hardy at hibernate.org
Fri Apr 8 05:09:06 EDT 2011


On Fri, 08 Apr 2011 10:47:37 +0200, Emmanuel Bernard  
<emmanuel at hibernate.org> wrote:

> What does
> //this version doesn't break the compatibility
> means on other versions?

I also prefer  
https://gist.github.com/903302#file_1_method_configuration.java
This version means though that people already using the programmatic API  
might have to
reorder/adjust their mapping when upgrading. One reason for that is that  
atm
you can for example specify 'defaultGroupSequence' multiple times. After  
the changes
you can only specify it after 'type' (which makes sense).

We already made some changes during the 4.2 development to the  
programmatic API. If
we all agree that file_1_method_configuration is the best approach, we  
should just make
a final adjustment instead of delaying it and changing it post 4.2

The versions marked w/ "this version doesn't break the compatibility"  
won't break any existing
programmatic mappings, but all of them seem worse than  
file_1_method_configuration.

--Hardy



More information about the hibernate-dev mailing list