What ever you do, you will need some functionality in your application that is
already in EntityHome. At least, I suggest you to examine sources of it and
catch the ideas and approaches . Then you can try to reuse it.
View the original post :
denis-karpov wrote : What ever you do, you will need some functionality in
your application that is already in EntityHome. At least, I suggest you to
examine sources of it and catch the ideas and approaches . Then you can try to
reuse it.
I know, I already have a common class which is
As a thought... you may find it useful to subclass MutableController, or
PersistenceController, or Controller.
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4063039#4063039
Reply to the post :
maku01 wrote : Hi,
|
| Is the usage of it recommended?
|
|
Depends if you find the barebones of EntityHome is sufficient for managing your
entities. Even if it's not, you can always override it. It's basically an
Entity-managed DAO. I use it and find it quite useful especially for
the ui example uses one (defined in components.xml)
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4062583#4062583
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4062583
___
So, after a little searching...
contactlist, dvdstore, quartz, seampay, wiki, and ui each use EntityHome.
Overriding EntityHome is used in quartz, seampay, and wiki.
Defining entity-home in components.xml is used in contactlist, dvdstore,
quartz, seampay, and ui.
seampay, interestingly
matt.drees wrote : So, after a little searching...
| contactlist, dvdstore, quartz, seampay, wiki, and ui each use EntityHome.
|
| Overriding EntityHome is used in quartz, seampay, and wiki.
|
| Defining entity-home in components.xml is used in contactlist, dvdstore,
quartz,
I think EntityHome is intended to be a tool that you can use however you want
to use it; there doesn't appear to be one Right Way.
So, if I were you, I'd give a shot at building DAOs on top of EntityHome, and
if it doesn't fit well, try something else. I'm experimenting a bit in my app,
and