-
1. Re: Entity Bean: @Name needed?
nimo22 Sep 17, 2008 12:14 PM (in response to newlukai)You do not need the @Name-Annotation in a EntityBean,
when you do your business stuff in a session bean!In common, it is better to seperate Model from Controller!
So do your business relevant things only in session beans and use the @Name-Annotation in SessionBeans.
-
2. Re: Entity Bean: @Name needed?
newlukai Sep 17, 2008 1:05 PM (in response to newlukai)And there is really no specific reason why every entity in the docs and examples got @Names?
-
3. Re: Entity Bean: @Name needed?
gjeudy Sep 17, 2008 5:39 PM (in response to newlukai)Perhaps because CRUD operations in the examples refer to the entity to create by name? If you don't want to bind directly an entity implementation to a view you can use:
@Factory("entityName")
and outject an interface or an abstract class (hiding actual implementation to the view), this is the Seam-ish implementation of the Factory pattern.
-
4. Re: Entity Bean: @Name needed?
newlukai Sep 19, 2008 7:38 AM (in response to newlukai)I knew it was a more or less stupid question. But thanks, I got it again.