I have a Table Per Class Inheritance in Hibernate.
@Entity
@Inheritance(strategy=InheritanceType.TABLE_PER_CLASS)
public abstract class A {
}
@Entity
@Table(name="B")
public class B extends A {
}
@Entity
@Table(name="C")
public class C extends A {
}
I'm just trying to validate the schema. I have already B and C tables in db.
I'm using <property name="hibernate.ejb.naming_strategy" value="org.hibernate.cfg.ImprovedNamingStrategy"/>
but I think that specifying @Table(name) override the behavior of naming strategy!
Why hibernate convert the name specified in @Table to lowerCase and searching for b and c instead of B and C? how can avoid it?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…