posted 22 years ago
An Entity bean can have behavior (business methods other than get/set), but they should be methods appropriate for a single Entity instance.
An Entity bean (in EJB 2.0) can also have Home methods that are appropriate for acting on Entities of that "type" (not instance-specific), but should generally not deal with entities of other types.
In a system, you are most likely dealing with several Entity (data) types. For example you may have Employee, Customer, Manager, Address, Product, etc. The Application Logic generally deals with multiple entities - actions, interactions, relationships, etc.
If you think about MVC, the entities are the Model (data), the session beans are usually used to implement a Controler, and the View is the user interface (whatever that is - outside EJB usually).