and some fileds to second table with different entity name
<class name="com.something.TestClass " table="TEST_TABLE_OTHER" entity-name="TestTableOtherTestClass">
<id name="filed2" column="FIELD2" />
<property name="filed4" column="FIELD4" />
<property name="filed5" column="FIELD5" />
Now my requirement is save entries to both the tables in single transaction,
But unfotunately its saving only the first save. i.e TestTableTestClass enitity to corresponding table. If change the order then also only first save is working and second is not.
Neither its throwing any error.... Not sure whats the error.
Can somebody help me....
posted 1 year ago
Hi, did i post this in wrong forum ? Shouldn't it be under Object relational Mapping