hibernate reverse engineering on a denormalized database

痴心易碎 提交于 2019-12-24 14:14:20

问题


is it possible to use reverse engineering on a denormalized database? hibernate reverse engineering to generate the Pojo classes for all the tables in the database didnt seem to work because none of the tables have any primary keys or foreign keys in them. what is the solution to this?

i did it using Netbeans & the error was that Pojo classes cant be generated because the tables do not have primary keys.


回答1:


create the primary/foreign keys in the database befor using the tool. Maybe in a clone of the original database. Other than that you can only write the mapping yourself.



来源:https://stackoverflow.com/questions/11346484/hibernate-reverse-engineering-on-a-denormalized-database

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