Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

abstract.....

 
bobby chaurasia
Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
why do we define the bean class as abstract and also the setters and the getter methods ?
Thanks
 
Simon Brown
sharp shooter, and author
Ranch Hand
Posts: 1913
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
Simon
 
Naidu Jitta
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hai,
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...
Naidu
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic