Hi.

I have the following exception when using a @JoinTable with a @ManyToOne 
relation :

org.hibernate.cfg.NotYetImplementedException: association table on a single 
ended association is not yet supported

I know that a many-to-one relation doesn't need a join table to be done, but we 
had to use one because we coulnd not change the existing model actually.

So, the following :
@ManyToOne(fetch = FetchType.LAZY)
@JoinTable(name = "FLEET_VEHICLE", 
    joinColumns = { @JoinColumn(name = "VEHICLE_ID") }, 
    inverseJoinColumns = { @JoinColumn(name = "FLEET_ID") })

is not working actually.

Why ? Is it cause a an Hibernate limitation ?

Will it be supported in the future ?

Is there another way that using a ManyToMany instead a have to deal with the 
session bean to get an single entry in the Fleet Collection ? Should lead to 
issues ?

Thanks a lot.
Christophe.




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

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


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to