1 Reply Latest reply on Jun 28, 2006 6:36 AM by Chris Malan

    org.hibernate.MappingException: Unable to find column with l

    Tinashe B Chipomho Newbie

      I am struggling with this error

      org.hibernate.MappingException: Unable to find column with logical name: StateID in TableName and this is my Entity definition.

      @Entity()
      @Table(schema="public",name="MyTable")
      @IdClass(ejb.MyID.class)
      @Inheritance(strategy=InheritanceType.TABLE_PER_CLASS)
      @DiscriminatorColumn(name="StateType",length=5,discriminatorType=DiscriminatorType.STRING)
      @DiscriminatorValue("ST")
      


      and I have noticed this does not go hand in hand with


      @Inheritance(strategy=InheritanceType.JOINED)

      sometimes I have to use
      @Inheritance(strategy=InheritanceType.TABLE_PER_CLASS)

      anybody to help?