1 Reply Latest reply on Feb 22, 2008 7:26 AM by Bernd Winterstein

    @JoinTable and InheritanceType.JOINED

    Bernd Winterstein Newbie

      I recently refactored a persistence layer toward JOINED inheritance. Afterwards I had a @Many2One assocation which stopped working:

      @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.