Code snippet:
@Inheritance(strategy = InheritanceType.SINGLE_TABLE) @Table(name = "PCC_CAL_GNIC") public class CommonGenericCalendar implements java.io.Serializable, Cloneable { ...... @OneToMany(mappedBy = "theGenericCalendar", fetch = FetchType.LAZY, cascade = CascadeType.ALL) protected Set<DateBase> theDateBases = new LinkedHashSet<DateBase>(); ..... }
@Inheritance(strategy = InheritanceType.SINGLE_TABLE) @Table(name = "PCC_CAL_DATEBASE") public class DateBase implements java.io.Serializable, Comparable<DateBase>{ ... }
@Entity public class RepeatableDateBase extends DateBase implements java.io.Serializable, Cloneable {
... }
When I tried to save object of Datebase or RepeatableDateBase , discriminator column(DTYPE) is not getting updated.It is alway null. (It should be either Datebase or RepeatableDateBase)
The issue occurs only on project environment where <property name="hibernate.transaction.manager_lookup_class">org.hibernate.transaction.WebSphereTransactionManagerLookup</property> is used.
The issue is not on local , I used <property name="hibernate.transaction.manager_lookup_class">org.apache.openejb.hibernate.TransactionManagerLookup</property>.
Can you please help on this ?
Thanks, Gayatri
|