Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

choosing between entity and session bean  RSS feed

 
krishna prasad gunasekaran
Ranch Hand
Posts: 158
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
good day,

1.what basis should i choose between session and entity bean on?
2.if i have to put them together, what is the most important role each should perform?

have a nice day,
krishna prasad g
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Session and entity beans exist for entirely different reasons; its not an either/or choice.

Have a read though this for the answer.
 
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper
Posts: 4968
1
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A session bean, especially a session facade, choreographs how various other components will interact with each other, with those 'other' components typically being your entity beans, which represent database centric information.

I've often heard it said that Entity Beans are like the actors in a play, whereas a Session bean is the script. It's a good analogy.

-Cameron McKenzie
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!