1

I try to generate java class from MySql 8.0.12 database by using Hibernate Tools on eclipse

Class are well generated but without annotations (like @Entity, etc...)

enter image description here

Here is my Hibernate Tools configuration :

enter image description here

enter image description here

I can ping database and retrieve tables :

enter image description here

Here is my hibernate code generation configuration :

enter image description here

and

enter image description here

I used to work with MySQL 5 and hibernate Tools 5.2 and it worked fine ! But now i would like to upgrade my database (MySql 8)

How can I solve this issue ?

anakin59490
  • 630
  • 1
  • 11
  • 28

1 Answers1

1

it is the Hibernate version 5.3. It is a bug.

I ran into the same problem.

Change it to 5.2 and it should work.

See answer here

ProfitWarning
  • 1,884
  • 1
  • 9
  • 8