Mapping with Hibernate Annotations in Grails 3.0.1

后端 未结 1 409
清酒与你
清酒与你 2021-01-16 14:02

How can I map a domain class with annotations in Grails 3.0.1?

The following steps didn\'t work for me.

Step 1. I have created a new applica

1条回答
  •  时光说笑
    2021-01-16 14:15

    As Graeme suggested, the solution is putting hibernate.cfg.xml in grails-app/conf instead of grails-app/conf/hibernate, otherwise the configuration will not take effect. I have submitted a pull request to reflect this in the relevant documentation and I hope the update to take effect soon so to prevent other users from facing the same issue.

    0 讨论(0)
提交回复
热议问题