I already have the hibernate and pojos mapping files created by Netbeans, to which I have added named queries and additional methods.
Now I have added another table to the database and a foreign key column to the existing table.
It is not a big problem with a single table to add the mappings manually, but it becomes tedious and prone to errors with a large number.
I am currently using the wizard to create an entire new set of classes and mappings in a new package and manually merge, which is error prone in itself.
Is there a way to automatically update .hbm and java files?
source
share