Hibernate does not create Table in the database

纵饮孤独 提交于 2019-12-02 10:35:06

The property is hibernate.hbm2ddl.auto, instead of hibernate.hbm2dll.auto.

DDL = Data Definition Language

DLL = Dynamically Loaded Library

Mitodina

The question has been correctly answered. By the way, I'd like to add something. You put

<property name="hibernate.connection.username">postgres</property>
        <property name="hibernate.connection.password">user</property>

It's not a good option to change postgres password default (it carries security problems), and it isn't secure using postgres user as owner in a DB. For more information, see the following link https://serverfault.com/questions/110154/whats-the-default-superuser-username-password-for-postgres-after-a-new-install/325596#325596 Sorry for this disgression, but I think it could be useful.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!