-
1. Re: Functionality difference between EntityHome and EntityCo
matt.drees Oct 4, 2007 4:20 PM (in response to gus888)In my (limited) experience:
EntityHome is most useful when you need to do CRUD operations on a single entity. It makes it super-convenient if you do things the "seam-gen way".
If you don't want to do things that way, it can be hard to work with. So, for example, if you want a component that does CRUD simultaneously on multiple entity objects, then I think you're better off with an EntityController.
EntityHome extends EntityController, by the way, which is why most of the methods are the same. EntityController really just provides a ton of convenience methods.
I find that I use EntityController more often than EntityHome. -
2. Re: Functionality difference between EntityHome and EntityCo
pmuir Oct 4, 2007 5:10 PM (in response to gus888)As Matt says. EntityHome is great for scaffolding CRUD, EntityController is great if you are writing more complex components which control entites.
-
3. Re: Functionality difference between EntityHome and EntityCo
gus888 Oct 4, 2007 8:42 PM (in response to gus888)I got it. Thank you so much, Matt and Pete. And also appreciate the Seam team's great work.
Best regards,
Gus -
4. Re: Functionality difference between EntityHome and EntityCo
saeediqbal1 Oct 4, 2007 11:25 PM (in response to gus888)in the examples that come with seam, which ones use EntityHome and what ones use EntityController? I would like to take a look at their implementations.
Thanks -
5. Re: Functionality difference between EntityHome and EntityCo
matt.drees Oct 5, 2007 12:13 AM (in response to gus888)seamdiscs is the only one my IDE search found for EntityController.
EntityHome is used in the wiki, seamdiscs, quartz, and seampay -
6. Re: Functionality difference between EntityHome and EntityCo
saeediqbal1 Oct 5, 2007 12:36 AM (in response to gus888)Thanks Matt I appreciate your help.