I am using hibernate 3.5.1 to implement a basic inheritance setup like this:
@Entity @Inheritance(InheritanceType.JOINED) @Table("parent_table") public class Parent { }
@Entity @Table("child_table") @PrimaryKeyJoinColumn(name="id") public class Child extends Parent { }
I am using JPA criteria to retrieve entities of the child class. However, when these elements are fetched, an update is issued against parent_type for each entity fetched.
If I model this as the Child has a one to one field that is of type Parent, then I do not have this issue.
Any ideas on what would updates against the parent table at fetch time?
|