File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes EJB and other Java EE Technologies and the fly likes Virtual persistence fields Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Virtual persistence fields" Watch "Virtual persistence fields" New topic

Virtual persistence fields

Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9345

What are these fields in an EntityBean class? I understand that they are the actual columns in the database but why do we have to make them abstract in the Bean class?

SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
Jeanne Boyarsky
internet detective

Joined: May 26, 2003
Posts: 30138

This is in EJB 2.1? The container generates a subclass that implements the fields for us.

[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9345

Yes, it is EJB 2.x as I'm right now working on it.
Don't get me started about those stupid light bulbs.
subject: Virtual persistence fields
Similar Threads
alternative for interface
WA #1.....word association
Compound Primary Key
value changed for no reason
Finishing Driver Help, Null error