{"id":55,"date":"2014-05-07T13:29:09","date_gmt":"2014-05-07T13:29:09","guid":{"rendered":"http:\/\/www.morematter.net\/?p=55"},"modified":"2014-05-07T13:29:09","modified_gmt":"2014-05-07T13:29:09","slug":"reserved-words-in-grails","status":"publish","type":"post","link":"https:\/\/experimentalism.net\/morematter\/reserved-words-in-grails\/","title":{"rendered":"Reserved words in Grails?"},"content":{"rendered":"<p>So, I found <a href=\"http:\/\/groovy.codehaus.org\/Reserved+Words\" target=\"_blank\">this list of reserved words in Groovy<\/a>, but a few times I&#8217;ve run into others that seem to be problematic. Not sure if they are actually &#8220;reserved&#8221;, or where the conflict is for each, but I know I had problems&#8230;<\/p>\n<ul>\n<li><strong>alternate<\/strong> &#8211; so, I had a domain Course, and another domain CourseAlternate to map Courses to Alternate Courses. In CourseAlternate, I named fields &#8220;course&#8221; and &#8220;alternate&#8221;, but when I tried to create a new record as <em>new CourseAlternate(course: &#8220;x&#8221;, alternate: &#8220;y&#8221;)<\/em>, I got an error. When I changed the field to &#8220;alternateCourse&#8221; in the CourseAlternate domain, the problem disappeared.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>So, I found this list of reserved words in Groovy, but a few times I&#8217;ve run into others that seem to be problematic. Not sure if they are actually &#8220;reserved&#8221;, or where the conflict is for each, but I know I had problems&#8230; alternate &#8211; so, I had a domain Course, and another domain CourseAlternate [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13],"tags":[],"class_list":["post-55","post","type-post","status-publish","format-standard","hentry","category-grails"],"_links":{"self":[{"href":"https:\/\/experimentalism.net\/morematter\/wp-json\/wp\/v2\/posts\/55","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/experimentalism.net\/morematter\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/experimentalism.net\/morematter\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/experimentalism.net\/morematter\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/experimentalism.net\/morematter\/wp-json\/wp\/v2\/comments?post=55"}],"version-history":[{"count":1,"href":"https:\/\/experimentalism.net\/morematter\/wp-json\/wp\/v2\/posts\/55\/revisions"}],"predecessor-version":[{"id":56,"href":"https:\/\/experimentalism.net\/morematter\/wp-json\/wp\/v2\/posts\/55\/revisions\/56"}],"wp:attachment":[{"href":"https:\/\/experimentalism.net\/morematter\/wp-json\/wp\/v2\/media?parent=55"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/experimentalism.net\/morematter\/wp-json\/wp\/v2\/categories?post=55"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/experimentalism.net\/morematter\/wp-json\/wp\/v2\/tags?post=55"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}