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 both CMP and CMR fields are virtual fields? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "both CMP and CMR fields are virtual fields?" Watch "both CMP and CMR fields are virtual fields?" New topic
Author

both CMP and CMR fields are virtual fields?

yamini nadella
Ranch Hand

Joined: Apr 13, 2004
Posts: 257
Both CMP and CMR fields are virtual fields or only CMR fields are virtual fields?.

Yamini
Nileesha Bojjawar
Ranch Hand

Joined: Oct 10, 2003
Posts: 85
Hi Yamini,
Sorry for replying late, But Good to know things even after completion of the exam.
According to spec 10.1.3 Entity Bean Providers Programming Contract


The container-managed persistent fields and container-managed relationship fields must not be defined in the entity bean class. From the perspective of the Bean Provider, the container-managed persistent fields and container-managed relationship fields are virtual fields only, and are accessed through get and set accessor methods. The implementation of the container-managed persistent fields and container-managed relationship fields is supplied by the container.


So the answer to your question YES both CMP and CMR are virtual fields

Hope that helps.

[ October 07, 2004: Message edited by: Nileesha Bojjawar ]
[ October 07, 2004: Message edited by: Nileesha Bojjawar ]

Nileesha<br />SCJP 1.4, SCBCD, SCWCD.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: both CMP and CMR fields are virtual fields?