Why is a sequence named hibernate_sequence being created with JPA using Hibernate with the Oracle 10g dialect?

前端 未结 3 1933
太阳男子
太阳男子 2021-02-15 12:46

All my entities use this type of @Id

@Id
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = \"MYENTITY_SEQ\")
@SequenceGenerator(name =         


        
3条回答
  •  南旧
    南旧 (楼主)
    2021-02-15 13:24

    The HIBERNATE_SEQUENCE is used with REVINFO-entity for creating revision numbers. If you want to use different sequence you should create your custom revision entity.

    Help with that: http://docs.jboss.org/hibernate/envers/3.5/reference/en-US/html/revisionlog.html

提交回复
热议问题