This content has been marked as final.
Show 2 replies
-
1. Re: Mixing annotations at field/setters
patrick_ibg Feb 9, 2006 11:27 AM (in response to doegi)The new spec by default does not allow mixed field and method access on an entity, it's mapped superclass and embedded entities. There is a way around this, if you really want to do it (check the spec).
Before, the @Entity annotation took an AccessType.FIELD or AccessType.METHOD attribute. This is no longer the case. The access type is now determined by whether you annotate the entity's @Id on the field or method. This is inherited by @Embeddable and when extending @MappedSuperclass. -
2. Re: Mixing annotations at field/setters
epbernard Feb 9, 2006 3:36 PM (in response to doegi)Note that you can fall back to the previous behavior using @o.h.a.AccessType