Dmitry Geraskov wrote:
The hashCode and equals will be generated if you use any property with
"use-in-equals" meta attribute set to true or if you use <natural-id> in class.
Are you sure you have the same mapping which generates the methods in old hibernate-tools version?
You can add "use-in-equals" meta attribute as a workaround, but if there is really a problem please create an issue in our jira.
well, in old way i use middlegen to connect db and generate hbm.xml and pojo using 2 steps, in the middle i did not modify any thing for turn around,
i'm expecting eclipse plugin will do the same for hbm.xml and pojo (no need to add a meta for workaround), but failed,
my question to all you is:
do you get those hashcode() equals generated using eclipse plugin?