[jboss-user] [EJB 3.0] - @OneToMany with String as the many

lightbulb432 do-not-reply at jboss.com
Mon Dec 18 00:28:57 EST 2006


If I have an entity with a collection of Strings (e.g. a Person with many FirstNames), how would I map this to database tables using annotations? I tried a @OneToMany on the Set FirstNames, but this doesn't work.

Is my only option really to make FirstName an @Entity?

Is there any other way to get this to work without making FirstName an entity (i.e. without using @OneToMany?)

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

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



More information about the jboss-user mailing list