I use hibernate tools from eclipse 3.2.1 and i do reverse engineering. in the database i have defined tables and also relations between them. how can i write in the hibernate.reveng.xml to put the names of the foreign keys from the database in the .hbm.xml files? perhps this is possible if i try reverse engineering using ant?
my problem is when i use those .hbm.xml files to update the database, and because i don't have the foreign key defined in the .hbm.xml file, it duplicates the foreign key. i know i can specify manually for each table the foreign key in the hibernate.reveng.xml, but that is a lot of work for a big database.
|