[hibernate-dev] "derived identifier" mapping

Hardy Ferentschik hardy at hibernate.org
Thu Mar 27 14:49:39 EDT 2014


On 27 Jan 2014, at 15:17, Steve Ebersole <steve at hibernate.org> wrote:

> So this is another representation of a choice we are having to make quite a bit in 5.0 development... correctness versus "legacy", which has really implications for users.  So if users are relying on this Hibernate "feature" of splitting identifier mapping annotations between the entity and the IdClass, their apps would break if we now start supporting this "the correct way".
> 
> Maybe this is another case where we can log warning for "misplaced" annotations when we see an IdClass with persistence mapping annotations.

+1

>  The spec makes no mention of use cases where an IdClass has mapping annotations, nor do I consider this a "usability feature" from the users perspective (aside from the mentioned compatibility concerns).

+1 

—Hardy


More information about the hibernate-dev mailing list