openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Acton Wang <>
Subject problem when persist object using JOINED inhertitance under 1.1.0
Date Thu, 24 Jul 2008 13:51:12 GMT

      I used 1.1.0 to try to implement a simple JOINED inhertance  using orm.xml:
 <entity class="Parent">  <table name="Parent"/>  <inheritance strategy="JOINED"/>
 <attributes>   <id name="partyID">    <column name="PARTYID" column-definition="VARCHAR(200)"
nullable="false"/>   </id>
    ...  </attributes> </entity> <entity class="Child">  <table name="Child"/>
 <primary-key-join-column name="PARTYID" referenced-column-name="PARTYID"/>  <attributes>
  <basic name="fullRegisteredName">    <column name="FULLREGISTEREDNAME" column-definition="VARCHAR(200)"
updatable="true" insertable="true"/>   </basic>    .....
    when I try to persist multiple Child objects, the first one would be ok but the following
ones will fail and from trace, it seems that it keeps inserting into the "Child" table 2 times
instead of being inserting Parent table first then Child table.
    It looks no problem if I run it under 1.0.2 version. Is it a bug?
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message