Hibernate reverse engineering - mapping a table to Java enum

落爺英雄遲暮 提交于 2020-01-04 09:07:30

问题


I'm working on a project where I am using JBoss Tools to reverse engineer an MS SqlServer database into Hibernate objects. I am wondering if there is a way to map some of the tables in my schema to Java enums? Can this be configured in the hibernate.reveng.xml file? If so, do you have an example? Thanks!


回答1:


This open issue indicates that enums are not supported by hibernate reveng.



来源:https://stackoverflow.com/questions/7679044/hibernate-reverse-engineering-mapping-a-table-to-java-enum

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