[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: Map multiple rows to one object?

swjackson do-not-reply at jboss.com
Tue May 8 16:38:41 EDT 2007


You can create a custom ID by using (Assuming you are using ejb3)
@Embeddable and @EmbeddedId 

if you are not using ejb3 (assume you are using xdoclets)
create a new class that has your columns you want to be apart of the id
only add the xdoclets tags to the getter methods


Then add that class as the id

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

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



More information about the jboss-user mailing list