开发者

How to create tables with hibernate recomandations

开发者 https://www.devze.com 2023-01-21 23:54 出处:网络
I\'m relatively new to hibernate technology, and want to create an application with that. I have read that is not recomanded to use \"hibernate\'s creation tabels\" option (hibernate.hbm2ddl.auto) for

I'm relatively new to hibernate technology, and want to create an application with that. I have read that is not recomanded to use "hibernate's creation tabels" option (hibernate.hbm2ddl.auto) for a production environment. Does that m开发者_StackOverflow中文版ean that i need to create first tables and after that my POJOs classes or this recomandations is only for update value of hbm2ddl.auto?

Thank advance!


hibernate.hbm2ddl.auto is recommended for everything else except production. Especially for development. So feel free to use it.

Only when deploying on production use some database scripts to update your schema correctly.

0

精彩评论

暂无评论...
验证码 换一张
取 消