permaculture playing cards
The moose likes EJB and other Java EE Technologies and the fly likes abstract..... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "abstract....." Watch "abstract....." New topic


bobby chaurasia
Ranch Hand

Joined: Mar 30, 2002
Posts: 84
why do we define the bean class as abstract and also the setters and the getter methods ?
Simon Brown
sharp shooter, and author
Ranch Hand

Joined: May 10, 2000
Posts: 1913
This is a characteristic of how we define EJB 2.0 container managed entity beans. Basically, you write the signatures for the getters/setters, and the EJB container provides the actual implementations for you, including how those values are written to the database, etc.
Naidu Jitta

Joined: May 12, 2003
Posts: 14
This aproach is introduced from EJB2.0. This feature is called as the Abstract Persistance Schema. This is doen to incerease the performance.
Previously, for every method call the fields are loaded or stored. But this is eliminated in the new specs increasing the performance...
I agree. Here's the link:
subject: abstract.....
It's not a secret anymore!