Hibernate changes @Table(name) to lowercase

前端 未结 1 1810
醉话见心
醉话见心 2020-12-21 06:28

I have a Table Per Class Inheritance in Hibernate.

@Entity
@Inheritance(strategy=InheritanceType.TABLE_PER_CLASS)
public abstract class A {
}

@Entity
@Table         


        
相关标签:
1条回答
  • 2020-12-21 06:32

    If you are using JPA 2.0, the spec says:

    It is possible to specify that all database identifiers in use for a persistence unit be treated as delimited identifiers by specifying the <delimited-identifiers/> element within the persistence-unit-defaults element of the object/relational xml mapping file. If the <delimited-identifiers/> element is specified, it cannot be overridden.

    This setting should cause Hibernate to use the uppercase names of your tables, since that is how you have specified the names in your annotations.

    0 讨论(0)
提交回复
热议问题