Joined: Wed Jun 11, 2008 7:52 am Posts: 10
|
Hi,
I have the persistence model following :
@Entity
@Table(...)
@Inheritance( strategy = InheritanceType.TABLE_PER_CLASS )
public class A {
...
List<B> getB();
...
}
@Entity
@Table(...)
@Inheritance( strategy = InheritanceType.TABLE_PER_CLASS )
public abstract class B {
...
}
@Entity
@Table(...)
@Inheritance( strategy = InheritanceType.TABLE_PER_CLASS )
public class C extends B {
...
}
@Entity
@Table(...)
@Inheritance( strategy = InheritanceType.TABLE_PER_CLASS )
public class D extends B {
...
}
And hibernate during the backup tries to retrieve a row in the table of class B or it is not in it but in that of the class D and therefore Hibernate throws an exception.
Have you an idea on the problem?
|
|