[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[List Home]
|
Re: [eclipselink-users] Basic Design Question
|
- From: Xavier Callejas <xavier@xxxxxxxxxxxxxxx>
- Date: Thu, 8 Oct 2009 09:44:50 -0600
- Delivered-to: eclipselink-users@eclipse.org
- Organization: WorkFlow Logistics
- User-agent: KMail/1.12.2 (Linux/2.6.27.25-0.1-pae-xavier; KDE/4.3.2; i686; ; )
On Jueves 08 Octubre 2009 03:17:05 RogerV escribió:
> Does business logic have any place in an entity definition? - for example
> validation or should this always be done at a "higher" level?
>
I usually leave the entities as pure POJOs, but I also create a "controller"
java class for every jpa entity I must manage particulary.
I also use jpa entity heritance if need to do something special with this
entity.
This way, in my java web. apps, JSF is just my view component.
(my entity classes are in a separate package with the controllers of my jsf
web project).
rgds.
xavier.