[jboss-user] [JBoss Seam] - Re: Quick entity question
Manuel Palacio
do-not-reply at jboss.com
Mon Jul 23 17:57:34 EDT 2007
anonymous wrote : The whole point of an entity bean is to hold persitent data
Sure. But an entity is at least to me a potential domain object that might contain business logic which in turn might need to get access to other services.
anonymous wrote : Why not inject the entity bean into the service objects?
Because the domain layer is potentially more reusable. Often the service layer is specific to the application.
I asked because I wanted to know how flexible the framework can be if I want to design an app following DDD principles.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4066832#4066832
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4066832
More information about the jboss-user
mailing list