Quantcast
Channel: Liquibase Forums
Viewing all articles
Browse latest Browse all 2993

Liquibase Hibernate and composite-id

$
0
0
Hi there,

I'm trying to get a composite-id to work with liquibase but I can't get it done.

  1. <hibernate-mapping package="com.my.domain">
  2.   <class dynamic-insert="true" dynamic-update="true" name="ExamFormAttribute" table="exam_form_attribute">
  3.     <!-- Database identity -->
  4.     <composite-id>
  5.         <!--<key-property name="form" />-->
  6.       <key-many-to-one name="form" column="form" class="com.my.domain.ExamForm" />
  7.       <key-many-to-one name="attribute" column="attribute" class="com.my.domain.ExamAttribute" />
  8.     </composite-id>
  9.     
  10.     <property name="attOrder" type="integer"/>
  11.   </class>
  12. </hibernate-mapping>
I get the following error:

org.hibernate.MappingException: entity class not found: com.my.domain.ExamFormAttribute
at org.hibernate.mapping.PersistentClass.getMappedClass(PersistentClass.java:137) 
Any idea?


Viewing all articles
Browse latest Browse all 2993

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>