Why is a sequence named hibernate_sequence being created with JPA using Hibernate with the Oracle 10g dialect?
问题 All my entities use this type of @Id @Id @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "MYENTITY_SEQ") @SequenceGenerator(name = "MYENTITY_SEQ", sequenceName = "MYENTITY_SEQ") @Column(name = "MYENTITY", nullable = false) private Long id; or @Id @Column(name = "MYENTITY") I find that an Oracle sequence named hibernate_sequence is always created. Why is this so? And how can I avoid this? I am using JPA1 with Hibernate 3 and the Oracle 10g dialect. 回答1: The HIBERNATE_SEQUENCE