'Hibernate code generation does not create EJB3 annotation on export

Im trying to reverese engineer Mysql db into pojo java with annotation.

this is my configuration :

enter image description here

both "Use Java 5 syntax" and "Generate EJB3 annotations" are selected for export.

But the final export have no annotation in it.

enter image description here

In other hand i can achieve this by selecting multiple class from explorer , right click

and select "source/Generate Hibernate/jpa annotation" , but its kinda messy.(most fields

does not get any columns annotation)".

enter image description here

Or should i set something in "hibernate.reveng.xml" ? like adding Tables & Columns

explicity in here :

enter image description here

Or it should find out all of schema definition by it self and add it as a annotation to

class?



Solution 1:[1]

In your hibernate configuration,choose Hibernate Version 4.3

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 microwth