I already have hibernate mapping files and pojos created by Netbeans to which I've added named queries and extra methods.
Now I've added another table to the database and a foreign key column to an existing table.
It's not a big problem with just one table to add the mappings by hand but it gets tedious and error prone with more.
What I do at the moment is use a wizard to create a whole new set of classes and mappings in a new package and manually merge them, which in itself is prone to mistakes.
Is there a way to automagically update the .hbm and java files?