Grails project: Gorm or JPA/Hibernate annotations for legacy db mapping?

佐手、 提交于 2019-12-11 08:44:42

问题


In a grails app, I have to create a bunch of grails domain classes mapped to a very old db.

This very old db is using a lots of "funky" unreadable names for tables and columns.
These tables contains (too) often (too) many columns.

I was thinking of using the static mapping for all the relationship and using the JPA annotations for the columns names (almost all columns needs to be renamed and the mapping section will be elephantine)

Is this kind of mix is possible ?
If yes, is it something that I must avoid ?


回答1:


Check this out: http://www.ibm.com/developerworks/library/j-grails07158/index.html



来源:https://stackoverflow.com/questions/8214189/grails-project-gorm-or-jpa-hibernate-annotations-for-legacy-db-mapping

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