I'm trying to auto generate class codes with annotation from existing db (mySql). I have problem with configuration hibernate tools in eclipse this way to dont map foregin ID-key to int but to class.
Eg, I have entity A with ID indicates to entity B (ofc integer), when I use auto generete that tool maps to int, not to class.
How to configure this tool to achive what i mention above?
Thanks,