-
1. Re: Beginner question on Seam-gen entity annotations
pmuir Jan 17, 2008 12:35 PM (in response to jpbievenour)It's not if you don't want the entity to be a Seam component. You can use a Seam component like EntityHome to manage the entity instead.
-
2. Re: Beginner question on Seam-gen entity annotations
jpbievenour Jan 17, 2008 12:43 PM (in response to jpbievenour)Thanks for your reply, Pete.
So if I wanted to make Seam manage the entity, I could remove the home entity (which extends EntityHome and gives you persist, delete, edit, etc), annotate the entity with "@Name" and then reference the entity in a xhtml file using#{EntityName.propertyName}
Is that correct? -
3. Re: Beginner question on Seam-gen entity annotations
pmuir Jan 17, 2008 12:52 PM (in response to jpbievenour)I personally would much prefer the EntityHome approach to annotating entities.
I the aim is to not have to write entityHome.instance.property, then just add a factory to components.xml<factory name="entityName" value="#{entityHome.instance}" />
Why? I think the lifecycle is much clearer like this, you get EntityHome (which is very nice), and you are cluster safe. -
4. Re: Beginner question on Seam-gen entity annotations
jpbievenour Jan 17, 2008 12:58 PM (in response to jpbievenour)THANK YOU!!!
I've been confused with all the different ways of working with Seam and you answered so many of my questions in just these few posts. I'll look into working more with the EntityHome.