Is there a way that an existing pojo generated by hibernate tools must not be overwrite if I run the hibernate tools code generation?
Consider this scenario:
Class Employee
is already existing, then I created another table Employee_Salary
. If I want to create a pojo class using hibernate tools, Employee
Class will be overwrite also. This should not be the case, because I already have some modification with the Person
class.
Hibernate tools must only generate the EmployeeSalary
Class instead. I cannot remove Employee table to revenge file since it is related to Employee_Salary
table.
Any idea would be appreciated.
Thanks!