Author Login
Post Reply
hi,
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?
Thx
Acton