tag:blogger.com,1999:blog-785059744103848185.post718725980337690338..comments2023-07-03T16:55:30.726+02:00Comments on jan blog: What to do when Grails does not generate table for your domain classjanhttp://www.blogger.com/profile/09450549833036134264noreply@blogger.comBlogger5125tag:blogger.com,1999:blog-785059744103848185.post-60207056054065524662009-07-29T02:37:56.674+02:002009-07-29T02:37:56.674+02:00I had a similar problem, but as for me the problem...I had a similar problem, but as for me the problem was because in the domain class I declared a varchar that exceds the maximun size permited in DB2, then the only thing that I done was to use the maxSize constraint and it works.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-785059744103848185.post-49134508620075317052009-02-26T18:10:00.000+01:002009-02-26T18:10:00.000+01:00To see the hibernate output from the docs:make the...To see the hibernate output from <A HREF="http://docs.codehaus.org/display/GRAILS/Logging" REL="nofollow">the docs</A>:<BR/><BR/>make the change<BR/>log4j.logger.org.hibernate="debug, stdout"<BR/><BR/>in config.groovy. The default is "off".board tchttps://www.blogger.com/profile/01605043839813003474noreply@blogger.comtag:blogger.com,1999:blog-785059744103848185.post-84351676630190802942008-05-22T08:26:00.000+02:002008-05-22T08:26:00.000+02:00Actually in my case I didn't have a problem with r...Actually in my case I didn't have a problem with reserved MySql keywords. My problem was that column link was defined as: maxSize:700, unique:true and Hibernate tries to generate this column as of unique Text type and that fails.<BR/><BR/>I couldn't find solution within grails how to specify that String property longer than 255 and shorter than 760 chars be created as varchar column in MySql.janhttps://www.blogger.com/profile/09450549833036134264noreply@blogger.comtag:blogger.com,1999:blog-785059744103848185.post-51359856947599097752008-05-22T01:32:00.000+02:002008-05-22T01:32:00.000+02:00I raised a JIRA for this issue.Grails really shoul...I raised a JIRA for this issue.<BR/>Grails really shouldn't startup if the tables aren't all there....<BR/><BR/>http://jira.codehaus.org/browse/GRAILS-2898diongillardhttps://www.blogger.com/profile/00905051219571178353noreply@blogger.comtag:blogger.com,1999:blog-785059744103848185.post-31273410580397730302008-05-21T18:04:00.000+02:002008-05-21T18:04:00.000+02:00The solution here would be to use back ticks to es...The solution here would be to use back ticks to escape the name of the column:<BR/><BR/>static mapping = {<BR/> link column:'`link`'<BR/>}Graeme Rocherhttps://www.blogger.com/profile/12301973191113958910noreply@blogger.com