Search code examples
hibernatenetbeanspojo

How to regenerate Hibernate Model classes from database on netbeans


I have a running application developed on netbeans using hibernate and it works fine now I added some parameter to a database table and I want to reflect these changes on my generated hibernate classes how to achieve so ?


Solution

  • achieved so by the inverse way so I updated the code to update the databse accordingly using hbm2ddl tool by adding this

    <property name="hibernate.hbm2ddl.auto">update</property>