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.
PS: i was able to map ManyToOne relation with an external table in EJB2.1.
EJB3 does not permit that anymore ?