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 Container-manager persistent fields, shouldn't be declared in the entity bean class? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Reply Bookmark "Container-manager persistent fields, shouldn Watch "Container-manager persistent fields, shouldn New topic
Author

Container-manager persistent fields, shouldn't be declared in the entity bean class?

alzamabar
Ranch Hand

Joined: Jul 24, 2002
Posts: 379
Hi, I'm studying that the persiste fields should be declared in the entity bean, via abstract getters and setters methods.

I've got the following question:

'Container-managed persistent fields must be defined in the entity bean class'

I replied 'true', but the answer from the book was false.

Any idea?


Marco Tedone<br />SCJP1.4,SCJP5,SCBCD,SCWCD
Will Hunt
Greenhorn

Joined: Jul 18, 2004
Posts: 14
Like you said, you don't declare them in your CMP Entity Bean class , they are there because of abstract getters and setters.

You don't define the fields, you just declare the abstract getters and setters for them.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Container-manager persistent fields, shouldn't be declared in the entity bean class?
 
Similar Threads
EJB 2.0 Persistence
Accessor for PK Class
virtual persistent field question
Coffe Cream on EB: mistakes/doubts #1
both CMP and CMR fields are virtual fields?