I am new to spring boot and i am using Spring Boot, JPA and Hibernate to develop a sample Spring boot application. I am getting the following error.
Caused by: org.hibernate.tool.schema.spi.SchemaManagementException: Schema-validation: missing sequence [tutorial_seq]
This is my Entity bean.
@Id @Column(name = "ID", insertable = false, updatable = false)
@SequenceGenerator(name = "tutorial_seq_gen", sequenceName = "TUTORIAL_SEQ", allocationSize = 1)
@GeneratedValue(strategy = GenerationType.IDENTITY, generator = "tutorial_seq_gen")
private BigInteger id;
I have the sequence in Oracle db and a trigger that automatically generates the id by calling the sequence.
This is the Sequence from db.
SCOTT@orclpdb> select sequence_name from user_sequences where sequence_name='TUTORIAL_SEQ';
SEQUENCE_NAME
TUTORIAL_SEQ
SCOTT@orclpdb>
Is there a way to Omit/Skip the sequence generator in Hibernate? or is there a fix for this error?
Thanks in advance for your response.