JPA Reverse Engineering in both 5.5 and 6.0M1 doesn’t generate @GeneratedValue annotation for primary key fields that auto_increment. Ideally, @GeneratedValue(strategy=GenerationType.IDENTITY) should be generated since I am using MySQL with TopLink JPA provider.
I’ve looked at custom templates but this issue appears to be in code the Hibernate tool MyEclipse is apparently using for JPA reverse engineering.
Since there is no apparent way to inject field generation strategy hint using JPA annotations without having to edit reverse engineered files every time, value of JPA Reverse Engineering is reduced to a one-time use tool.