[jboss-user] [EJB 3.0] - @JoinTable and InheritanceType.JOINED
artmooney
do-not-reply at jboss.com
Fri Feb 22 06:56:46 EST 2008
Hi,
I recently refactored a persistence layer toward JOINED inheritance. Afterwards I had a @Many2One assocation which stopped working:
@OneToOne(fetch=FetchType.LAZY)
@JoinTable(name="Patient2CRMDoctorV",joinColumns={@JoinColumn(name="patientId")}, inverseJoinColumns={@JoinColumn(name="doctorId")} )
private Doctor doctor;
Patient2CRMDoctorV is a view in the database.
The error is:
Invocation of init method failed; nested exception is org.hibernate.AssertionFailure: Table Patient2CRMDoctorV not found
Are there any known issues with this combination. I found an older unanswered post with the same problem.
Regards,
Bernd
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4131363#4131363
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4131363
More information about the jboss-user
mailing list