P
P
Partizanin2016-01-10 14:49:19
Java
Partizanin, 2016-01-10 14:49:19

What does hibernate want?

Hello, tell me what can beat?
Spring.version 4.0.5.RELEASE hibernate.version4.3.5.Final
swears like this

Caused by: org.hibernate.MappingException: Could not instantiate id generator [entity-name=hw11.model.domain.Client]

here is the full error log!
here is the Client class that is being scolded https://goo.gl/Hbjmy1

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Partizanin, 2016-01-10
@Partizanin

Thank you all figured out the problem was in

@SequenceGenerator(name = "sequence", sequenceName = "seq_operator_id", allocationSize = 1)
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "sequence")

in every object model!
Previously, this project was launched along with the Oracle database, and it supports SequenceGenerator, but now it launched with MySql and there was a conflict!

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question