开发者

I need grails to add an alias onto the system generated constraints

I am using grails and oracle. When the default constraints are created by grails for unique, relation etc constraints they are done as system generated constraints, with id's like SYS_C0060279. The problem I am having is that between the dev/test/prod systems these id's are differnt because all are created in the same db just different schemas. So what I would like to do is have some way to possibly alias all the auto generated constraints in grails so they are not system created and will be consistent with refreshes across the environments?

I am trying to use liquibase to manage all the differences but the constraints are being painful because every env has a different constraint name.

Any help would be开发者_如何学Python greatly appreciated, and don't just suggest mysql or postgres ;).

Cheers David


Grails Object Relational Mapping uses Hibernate 3. I think it's not implemented in Hibernate. http://opensource.atlassian.com/projects/hibernate/browse/HHH-3499

specifying constraint name in hibernate mapping file

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜