File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
EJB Certification (SCBCD/OCPJBCD)
Container-manager persistent fields, shouldn't be declared in the entity bean class?
Joined: Jul 24, 2002
Jul 18, 2004 05:27:00
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.
Marco Tedone<br />SCJP1.4,SCJP5,SCBCD,SCWCD
Joined: Jul 18, 2004
Jul 18, 2004 09:19:00
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:
subject: Container-manager persistent fields, shouldn't be declared in the entity bean class?
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?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013