[jboss-user] [JBoss Seam] - Re: Design question: Why use @Name on Entities?
SmokingAPipe
do-not-reply at jboss.com
Tue Jul 31 03:48:51 EDT 2007
Thanks for the info. I saw examples where the entities had @Name notations on them, so I started doing that, but that actually caused me a lot of confusion. When I use an outjection I can control the scope of components which are not @Named entities, but if it is @Named then the @Name setting controls the scope... that confused me a lot. It seems easier to just not put a @Name on the various entities, and use @Name only for actions. Then if I want to alias something I'll do that in components.xml, but I don't even need to do that. I would prefer to access userHome.instance instead of just user, because to me there's less ambiguity about which user I'm talking about with userHome.instance.
Thanks for clearing this up.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4069024#4069024
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4069024
More information about the jboss-user
mailing list