Grails 2.3.8 domain class has name Order -


i failing integration test because in project there domain class named order. known keyword in sql. exception generated hints @ sqlgrammarexception. 1 obvious solution rename class. there solution allow me keep name of class is?

you can escape name specifying mapping

class order {    static mapping = {        table "`order`"   } } 

source: https://jira.grails.org/browse/grails-2737


Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

python - Exception while importing pymorphy2 -

c# - Nested Internal Class with Readonly Hashtable throws Null ref exception.. on assignment -