This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes @Embedded annotation for properties. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "@Embedded annotation for properties." Watch "@Embedded annotation for properties." New topic
Author

@Embedded annotation for properties.

Kenneth Lomvey
Ranch Hand

Joined: Nov 08, 2008
Posts: 94
When we used the @Embedded annotation for property accessor methods in an entity, should we use it to both getter method or setter method? Or, is it enough to annotate only the getter method?
Tomaszz Lewandowski
Ranch Hand

Joined: Sep 07, 2007
Posts: 30
You MUST annotatate getter accesor only.


Regards<br />Tomasz Lewandowski<br />SCJP5 (97%) | SCWCD5 (98%)
Kenneth Lomvey
Ranch Hand

Joined: Nov 08, 2008
Posts: 94
Thanks Tomaszz.
 
Don't get me started about those stupid light bulbs.
 
subject: @Embedded annotation for properties.
 
Similar Threads
getter and setter generation with annotations
Mapping annotations for variables.
annotation on the property or access method?
Question on MTOM - The image is returned inline instead of an attachment.
Annotation doubt