[jboss-user] [EJB 3.0] - Re: ejb-ql relations/mapping problem

ppogoda do-not-reply at jboss.com
Thu May 31 04:02:48 EDT 2007


But my problem is that i want to have OneToMany relation between 
Documents and Dictionaries

@Entity
class Document {
...
@OneToMany (not ManyToMany)
private Collection dict1
...
}

With many to many i would have to create additional join table...

in Document bean I have only dict_id, without dict_status, dict_locale and using only dict_id in relation annotation give me ManyToMany no matter that I give additional condition in EJB-QL (dict_status, dict_locale)

The best would be to have some kind of parametrized relation with dict_status and dict_locale, that would give me OneToMany.

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

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



More information about the jboss-user mailing list