File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes metadata-complete for mapped-superclass Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Professional Certification » EJB Certification (SCBCD/OCPJBCD)
Reply Bookmark "metadata-complete for mapped-superclass" Watch "metadata-complete for mapped-superclass" New topic
Author

metadata-complete for mapped-superclass

Priyank Nautiyal
Greenhorn

Joined: Oct 18, 2005
Posts: 16
Hi,

The metadata-complete attribute is used to ignore the annotations of an entity/mapped-superclass.
I have doubt that if in a mapping file the metadata-complete="true" is specified for a mapped-superclass , are the annotations on it’s child classes also ignored?


Cheers,<br />Priyank<br />SCJP-96%,SCWCD-85%
Mihai Radulescu
Ranch Hand

Joined: Sep 18, 2003
Posts: 912
Hi

From JPA specification :


If the metadata-complete attribute is specified on the mapped-superclass element itself, any annotations on the mapped superclass (and its fields and properties) are ignored. When metadata-complete is specified on the mapped-superclass element and XML elements are omitted,the default values apply to the given class.


IMHO this works only in the specified class.

Regards,
Mihai


SCJP, SCJD, SCWCD
Priyank Nautiyal
Greenhorn

Joined: Oct 18, 2005
Posts: 16
Looks like so but not certain
Thanks anyways Mihai.
 
IntelliJ Java IDE
 
subject: metadata-complete for mapped-superclass
 
Threads others viewed
PostConstruct and PreDestroy methods can be have any access modifier
what is metadata or annotations
Persistence : third-party ORM's vs EJB 3.0 CMP
WebServlet annotation not working in Tomcat 7.0?
descriptor information is NOT complete
developer file tools