Hi, I have an existing database table(in which each row contains a classId column). I am now trying to map my various related objects to this data and need to use the existing classid column to denote the class discriminator using single table inheritance. I have just setting the classid as the @DiscriminatorColumn but Hibernate attempts to recreate this columns and throws an exception. I think therefore, that I have to use a @DescriminatorFormula but cannot find a way to simply apply it. Thanks, Barry
|