Hi Guys,
I've been looking into this for the last couple of hours to no avail, so hopefully someone on here can help.
I've got a simple table in MySQL with an BIGINT field declared with auto_increment , and also as a primary key.
When using the Hibernate tools in Eclipse to reverse engineer the DAOs from the DB schema I was expecting the resulting code ( using EJB3 annotations ) to have the generator set automatically.. however this doesn't seem to be the case
have a simple revenge.xml that just includes the tables I want to generate from. I know I can set up a custom revenge.xml to set the id field to the correct generator, but it seems this is something that should be picked up from the schema and not need any intervention?
Any help would be much appreciated. If this isn't the case for any reason, or just hasn't been implemented yet and I could help with the implementation, please let me know.
Regards,
Toby
|