简体   繁体   中英

How to regenerate Hibernate Model classes from database on netbeans

我有一个使用hibernate在netbeans上开发的正在运行的应用程序,现在我可以向数据库表中添加一些参数,并且我想在生成的hibernate类上反映这些更改如何实现?

通过相反的方式实现,所以我通过添加hbm2ddl工具来更新代码以相应地更新数据库

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM