tag:blogger.com,1999:blog-7017083405558956091.post3333119008842229812..comments2023-07-05T05:50:39.922-07:00Comments on Kickin' down the cobblestones: Grails' ORM DSL Rules!Dave Kleinhttp://www.blogger.com/profile/05996044798024907436noreply@blogger.comBlogger8125tag:blogger.com,1999:blog-7017083405558956091.post-11237585914877911112010-08-13T14:28:28.735-07:002010-08-13T14:28:28.735-07:00re: previous error, in Oracle I had to run
GRANT ...re: previous error, in Oracle I had to run <br />GRANT SELECT ON "SCHEMA"."SEQ_NAME" to "ROLE";Matthttps://www.blogger.com/profile/13188768853302714627noreply@blogger.comtag:blogger.com,1999:blog-7017083405558956091.post-27049283299722936872010-08-13T13:52:30.486-07:002010-08-13T13:52:30.486-07:00thanks much for the format of
id generator: '...thanks much for the format of <br />id generator: 'sequence', params:[sequence:'ID_BK_PK_SEQ']<br /><br />My problem is connecting to an Oracle DB with a ID column, a Sequence, Grails doesn't seem to find the existing sequence. I get the error <br />2010-08-13 15:45:32,260 [main] ERROR hbm2ddl.SchemaUpdate - Unsuccessful: create sequence WEBSYS.LOCS_SEQ<br />2010-08-13 15:45:32,260 [main] ERROR hbm2ddl.SchemaUpdate - ORA-01031: insufficient privileges<br /><br />I've tried both [sequence:'SEQ_NAME'] and [sequence:'SCHEMA.SEQ_NAME']. But Grails seems to want to create a new one rather than use the one that is there. Thoughts?Matthttps://www.blogger.com/profile/13188768853302714627noreply@blogger.comtag:blogger.com,1999:blog-7017083405558956091.post-59960793069696502512010-03-15T12:05:32.442-07:002010-03-15T12:05:32.442-07:00I apologize for the code and background colors. T...I apologize for the code and background colors. That happened when I changed to a different blogspot theme. I'll try to get it fixed soon.Dave Kleinhttps://www.blogger.com/profile/05996044798024907436noreply@blogger.comtag:blogger.com,1999:blog-7017083405558956091.post-1372899483210287132010-03-15T11:41:18.369-07:002010-03-15T11:41:18.369-07:00Yellow text on white background ? Are you serious ...Yellow text on white background ? Are you serious ??? :o Please put at least white text on black background, so I don't have to use nigh vision gogles to read your code. <br /><br />Thanks!DreamerForeverhttps://www.blogger.com/profile/13628896782972751486noreply@blogger.comtag:blogger.com,1999:blog-7017083405558956091.post-78060156169217139172008-10-13T15:55:00.000-07:002008-10-13T15:55:00.000-07:00On the subject of mapping, is it possible to map a...On the subject of mapping, is it possible to map a controller not only to a table, but also to a particular database? I can set up several databases in the spring configuration file, and even switch between them using this call in my custom tag library: def sql = Sql.newInstance(databaseService.getDataSource(databaseService.VIMSCUBES))<BR/><BR/>I would like to be able to use the grails scaffolding, but pull tables from several different databases.<BR/><BR/>ThanksAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-7017083405558956091.post-78857214879455824502008-03-17T15:29:00.000-07:002008-03-17T15:29:00.000-07:00GORM certainly qualifies as a far better way to us...GORM certainly qualifies as a far better way to use Hibernate. To be honest though, I'm still a little skeptical as to the merits of the Data Mapper pattern (which is what GORM implements through Hibernate). Unfortunately, the Active Record pattern really hasn't taken off in Java-land.<BR/><BR/>Now if Scala had an Active Record ORM separate from Lift, that would be a force to be reckoned with!Daniel Spiewakhttps://www.blogger.com/profile/17323566514229790079noreply@blogger.comtag:blogger.com,1999:blog-7017083405558956091.post-72116406282808892492008-03-16T14:40:00.000-07:002008-03-16T14:40:00.000-07:00Thanks Jason. Sometimes I switch between idiomati...Thanks Jason. Sometimes I switch between idiomatic and idiotic. :)Dave Kleinhttps://www.blogger.com/profile/05996044798024907436noreply@blogger.comtag:blogger.com,1999:blog-7017083405558956091.post-48286195057086374682008-03-16T08:31:00.000-07:002008-03-16T08:31:00.000-07:00Good stuff, Dave! The ORM DSL is certainly a nice...Good stuff, Dave! The ORM DSL is certainly a nice improvement over the old Hibernate XML mapping approach. <BR/><BR/>One suggestion: Capitalizing the names of your instance variables seems a bit odd, and is not idiomatic. <BR/><BR/><B><BR/> String Title<BR/></B><BR/><BR/>should be<BR/><BR/><B><BR/> String title<BR/></B><BR/><BR/>Congrats on freeing yourself from EJB+JSF land! ;-)Jason Rudolphhttps://www.blogger.com/profile/17651409904762470492noreply@blogger.com