标签:
@Entity@Inheritance(strategy=InheritanceType.SINGLE_TABLE)@DiscriminatorColumn()public class Animal {
}
@Entity@DiscriminatorValue(value= "P")public class Pig extends Animal{
Hibernate 继承映射
原文地址:http://www.cnblogs.com/xinlinjun/p/5879314.html