GORM prevent creation of a foreign key constraint for a Domain

前端 未结 3 1862
一个人的身影
一个人的身影 2021-01-15 13:25

I am developing a web based application in Grails. I have come across a situation where I would like to try and suppress GORM from creating a foreign key constraint on a fie

3条回答
  •  终归单人心
    2021-01-15 13:44

    have you looked at this section of the documentation

    http://grails.org/doc/latest/guide/5.%20Object%20Relational%20Mapping%20(GORM).html#5.5.2 Custom ORM Mapping

    you can override grails's default persistence semantics by using the custom mapping DSL.

提交回复
热议问题