Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我已经运行了一个 Hibernate 应用程序,它应该在其中创建一个表名并为&Userdet插入值。但是当我拖下 MySQL 数据库便便时,我找不到任何表已创建。但是 Hibernate 应用程序运行成功。usernameuserID
Userdet
username
userID
你可能使用“create-drop”吗?当 SessionFactory 关闭时,这会导致模式被删除。如果是这样,通过 Hibernate 创建数据库的其他选项是create和update。
其他常见错误是连接数据库而不是假设和/或检查错误的模式。