Hibernate changes @Table(name) to lowercase

前端 未结 1 1815
醉话见心
醉话见心 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 element within the persistence-unit-defaults element of the object/relational xml mapping file. If the 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)
提交回复
热议问题