0 Replies Latest reply on Jan 11, 2008 5:06 PM by Derek Chen-Becker

    Can someone clarify SINGLE_TABLE inheritance behavior?

    Derek Chen-Becker Newbie

      If I have the following hierarchy:

      public abstract class A {...}

      public class B extends A {...}

      public class C extends A {...}

      Should I be able to take an instance from the DB that maps to type B and resave it as type C? I'm using JPA so this would be a merge. I'm thinking I'm going to have to delete the existing instance and then insert the new instance, but I wanted to see if Hibernate could handle that in some fashion.