[jboss-user] [JBoss Seam] - Design question: Why use @Name on Entities?

SmokingAPipe do-not-reply at jboss.com
Mon Jul 30 18:43:41 EDT 2007


Simple question: I'm using EntityHome objects to manage a bunch of entities.  Therefore I have FooHome to manage Foos, etc.  Of course FooHome has to have a @Name annotation:

@Name("fooHome")

for it to be a Seam component.

I can do all my stuff to Foos using fooHome.instance.  And if I want to refer to "foo" by itself I can do that by adding an alias in components.xml.

So... at that point, is there any reason for me to put a @Name annotation on the Foo entity itself?


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4068936#4068936

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4068936



More information about the jboss-user mailing list