Error when trying to insert an extended entity: invalid column index
问题 I have two entities for two classes. First is an extended class of the second (Observer pattern): The child: @Entity @Inheritance(strategy = InheritanceType.JOINED) @DiscriminatorValue("User") @Table(name="SCH.USER") public class User extends Observer implements Serializable{ ...fields... } And the father: @Entity @Inheritance(strategy = InheritanceType.JOINED) @DiscriminatorColumn(name = "DISCRIMINATOR", discriminatorType = DiscriminatorType.STRING) @Table(name="SCH.OBSERVER") public