wood burning stoves 2.0*
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 Java 8 in Action this week in the Java 8 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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: @Embedded annotation for properties.
 
Similar Threads
annotation on the property or access method?
Annotation doubt
Mapping annotations for variables.
Question on MTOM - The image is returned inline instead of an attachment.
getter and setter generation with annotations