<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: Hoisting Grails to Your Legacy DB</title>
	<atom:link href="http://jasonrudolph.com/blog/2006/06/20/hoisting-grails-to-your-legacy-db/feed/" rel="self" type="application/rss+xml" />
	<link>http://jasonrudolph.com/blog/2006/06/20/hoisting-grails-to-your-legacy-db/</link>
	<description></description>
	<pubDate>Fri, 04 Jul 2008 17:55:36 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5</generator>
		<item>
		<title>By: Jason Rudolph</title>
		<link>http://jasonrudolph.com/blog/2006/06/20/hoisting-grails-to-your-legacy-db/#comment-4666</link>
		<dc:creator>Jason Rudolph</dc:creator>
		<pubDate>Thu, 17 May 2007 23:39:36 +0000</pubDate>
		<guid isPermaLink="false">http://jasonrudolph.com/blog/2006/06/20/hoisting-grails-to-your-legacy-db/#comment-4666</guid>
		<description>&lt;p&gt;@Torsten,&lt;br /&gt;
Thanks for your comments.  I'm sorry to see that you ran into some issues.  As you probably noticed, this tutorial was written in the days of Grails 0.1, and Grails has progressed greatly since then.  I'll be posting an updated version of this tutorial at some point in the near future.&lt;/p&gt;

&lt;blockquote&gt;So, is there any simple trick to tell grails/GORM/hibernate not to use the “version” column?&lt;/blockquote&gt;

&lt;p&gt;There's a &lt;a href="http://grails.org/GORM+explicit+mapping+definitions#GORMexplicitmappingdefinitions-TurnoffversioningwhennotsupportedbyexistingDBschema" rel="nofollow"&gt;proposal&lt;/a&gt; for this feature in the Grails sandbox, so it's quite possible that we'll see something along these lines implemented eventually.&lt;br /&gt;
&lt;br /&gt;
Thanks again,&lt;br /&gt;
Jason&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>@Torsten,<br />
Thanks for your comments.  I&#8217;m sorry to see that you ran into some issues.  As you probably noticed, this tutorial was written in the days of Grails 0.1, and Grails has progressed greatly since then.  I&#8217;ll be posting an updated version of this tutorial at some point in the near future.</p>

<blockquote>So, is there any simple trick to tell grails/GORM/hibernate not to use the “version” column?</blockquote>

<p>There&#8217;s a <a href="http://grails.org/GORM+explicit+mapping+definitions#GORMexplicitmappingdefinitions-TurnoffversioningwhennotsupportedbyexistingDBschema" rel="nofollow">proposal</a> for this feature in the Grails sandbox, so it&#8217;s quite possible that we&#8217;ll see something along these lines implemented eventually.<br />
<br />
Thanks again,<br />
Jason</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Horst Krause</title>
		<link>http://jasonrudolph.com/blog/2006/06/20/hoisting-grails-to-your-legacy-db/#comment-4664</link>
		<dc:creator>Horst Krause</dc:creator>
		<pubDate>Thu, 17 May 2007 20:13:30 +0000</pubDate>
		<guid isPermaLink="false">http://jasonrudolph.com/blog/2006/06/20/hoisting-grails-to-your-legacy-db/#comment-4664</guid>
		<description>&lt;p&gt;Hi Jason,&lt;/p&gt;

&lt;p&gt;thanks for the tutorial. It really helped me to get started with a legacy db. But (working with grails 0.5) it still does not work properly for my mysql database.
As soon as I use your hibernate.cfg.xml with Person.hbm.xml for my domain class Person (just id, name and surname for testing) I get the following exception:&lt;/p&gt;

&lt;p&gt;Server failed to start: org.mortbay.util.MultiException[org.springframework.beans.factory.BeanCreationException: Error c
reating bean with name 'transactionManager': Cannot resolve reference to bean 'sessionFactory' while setting bean proper
ty 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean wi
th name 'sessionFactory': Invocation of init method failed; nested exception is org.hibernate.MappingException: invalid
configuration, org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManage
r': Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory': Invocation of i
nit method failed; nested exception is org.hibernate.MappingException: invalid configuration, org.springframework.beans.
factory.BeanCreationException: Error creating bean with name 'transactionManager': Cannot resolve reference to bean 'ses
sionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCre
ationException: Error creating bean with name 'sessionFactory': Invocation of init method failed; nested exception is or
g.hibernate.MappingException: invalid configuration]&lt;/p&gt;

&lt;p&gt;Do you have any idea, why this happens? It does not seem to have anything to do with my domain class...?&lt;/p&gt;

&lt;p&gt;Anyway, the only reason to use the hibernate files is, that I have no version column in my domain class table and so always get an exeption because of the missing column:&lt;/p&gt;

&lt;p&gt;Caused by: com.mysql.jdbc.exceptions.MySQLSyntaxErrorException: Unknown column 'this_.version' in 'field list' at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:936) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2822) at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1536) at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1626) at com.mysql.jdbc.Connection.execSQL(Connection.java:3031) at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:943) at com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:1049) at org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:92) at org.hibernate.jdbc.AbstractBatcher.getResultSet(AbstractBatcher.java:186) at org.hibernate.loader.Loader.getResultSet(Loader.java:1778) at org.hibernate.loader.Loader.doQuery(Loader.java:662) at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:224) at org.hibernate.loader.Loader.doList(Loader.java:2211) ... 77 more&lt;/p&gt;

&lt;p&gt;So, is there any simple trick to tell grails/GORM/hibernate &lt;em&gt;not&lt;/em&gt; to use the "version" column?&lt;/p&gt;

&lt;p&gt;Thanks for any help!&lt;/p&gt;

&lt;p&gt;Bye,
   Torsten&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hi Jason,</p>

<p>thanks for the tutorial. It really helped me to get started with a legacy db. But (working with grails 0.5) it still does not work properly for my mysql database.
As soon as I use your hibernate.cfg.xml with Person.hbm.xml for my domain class Person (just id, name and surname for testing) I get the following exception:</p>

<p>Server failed to start: org.mortbay.util.MultiException[org.springframework.beans.factory.BeanCreationException: Error c
reating bean with name &#8216;transactionManager&#8217;: Cannot resolve reference to bean &#8217;sessionFactory&#8217; while setting bean proper
ty &#8217;sessionFactory&#8217;; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean wi
th name &#8217;sessionFactory&#8217;: Invocation of init method failed; nested exception is org.hibernate.MappingException: invalid
configuration, org.springframework.beans.factory.BeanCreationException: Error creating bean with name &#8216;transactionManage
r&#8217;: Cannot resolve reference to bean &#8217;sessionFactory&#8217; while setting bean property &#8217;sessionFactory&#8217;; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean with name &#8217;sessionFactory&#8217;: Invocation of i
nit method failed; nested exception is org.hibernate.MappingException: invalid configuration, org.springframework.beans.
factory.BeanCreationException: Error creating bean with name &#8216;transactionManager&#8217;: Cannot resolve reference to bean &#8217;ses
sionFactory&#8217; while setting bean property &#8217;sessionFactory&#8217;; nested exception is org.springframework.beans.factory.BeanCre
ationException: Error creating bean with name &#8217;sessionFactory&#8217;: Invocation of init method failed; nested exception is or
g.hibernate.MappingException: invalid configuration]</p>

<p>Do you have any idea, why this happens? It does not seem to have anything to do with my domain class&#8230;?</p>

<p>Anyway, the only reason to use the hibernate files is, that I have no version column in my domain class table and so always get an exeption because of the missing column:</p>

<p>Caused by: com.mysql.jdbc.exceptions.MySQLSyntaxErrorException: Unknown column &#8216;this_.version&#8217; in &#8216;field list&#8217; at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:936) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2822) at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1536) at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1626) at com.mysql.jdbc.Connection.execSQL(Connection.java:3031) at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:943) at com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:1049) at org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:92) at org.hibernate.jdbc.AbstractBatcher.getResultSet(AbstractBatcher.java:186) at org.hibernate.loader.Loader.getResultSet(Loader.java:1778) at org.hibernate.loader.Loader.doQuery(Loader.java:662) at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:224) at org.hibernate.loader.Loader.doList(Loader.java:2211) &#8230; 77 more</p>

<p>So, is there any simple trick to tell grails/GORM/hibernate <em>not</em> to use the &#8220;version&#8221; column?</p>

<p>Thanks for any help!</p>

<p>Bye,
   Torsten</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Dennis Carroll</title>
		<link>http://jasonrudolph.com/blog/2006/06/20/hoisting-grails-to-your-legacy-db/#comment-4479</link>
		<dc:creator>Dennis Carroll</dc:creator>
		<pubDate>Sat, 05 May 2007 23:40:57 +0000</pubDate>
		<guid isPermaLink="false">http://jasonrudolph.com/blog/2006/06/20/hoisting-grails-to-your-legacy-db/#comment-4479</guid>
		<description>&lt;p&gt;Thanks Jason,&lt;/p&gt;

&lt;p&gt;The next thing that is driven me crazy is this:
"Cannot get property: id on null object"
whenever the id filed is left blank.  This appears to be coming from :
render(view:'create',model:[employee:employee])&lt;/p&gt;

&lt;p&gt;I tried various things...
1. Putting constraints in the Employee class:
    static constraints = {
    id(blank:false)
    id(matches:/[a-zA-Z]/)
    }
2. redisplay the view:
        if(params.id=="") {
            render(view:'create')
        }
Finally I just gave up and added:
    if (employee.id == "") {
            redirect(action:create)
        }
that has the effect of blanking out the data already entered but at least I avoid a stack trace.
Obviously I am new at this so I'll sign up on the nabble forum and post a question there.&lt;/p&gt;

&lt;p&gt;Regards,
Dennis&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Thanks Jason,</p>

<p>The next thing that is driven me crazy is this:
&#8220;Cannot get property: id on null object&#8221;
whenever the id filed is left blank.  This appears to be coming from :
render(view:&#8217;create&#8217;,model:[employee:employee])</p>

<p>I tried various things&#8230;
1. Putting constraints in the Employee class:
    static constraints = {
    id(blank:false)
    id(matches:/[a-zA-Z]/)
    }
2. redisplay the view:
        if(params.id==&#8221;") {
            render(view:&#8217;create&#8217;)
        }
Finally I just gave up and added:
    if (employee.id == &#8220;&#8221;) {
            redirect(action:create)
        }
that has the effect of blanking out the data already entered but at least I avoid a stack trace.
Obviously I am new at this so I&#8217;ll sign up on the nabble forum and post a question there.</p>

<p>Regards,
Dennis</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Jason Rudolph</title>
		<link>http://jasonrudolph.com/blog/2006/06/20/hoisting-grails-to-your-legacy-db/#comment-4477</link>
		<dc:creator>Jason Rudolph</dc:creator>
		<pubDate>Sat, 05 May 2007 20:26:26 +0000</pubDate>
		<guid isPermaLink="false">http://jasonrudolph.com/blog/2006/06/20/hoisting-grails-to-your-legacy-db/#comment-4477</guid>
		<description>&lt;p&gt;&lt;p&gt;@Dennis,&lt;br /&gt; Thanks for the kind feedback.&lt;/p&gt; &lt;blockquote&gt;Does that mean that id is excluded from &#8220;employee.properties = params&#8221;?&lt;/blockquote&gt; &lt;p&gt;Yes indeed.  As of Grails 0.4, the id is excluded from the binding.  For more info please see the following thread from the mailing list.&lt;/p&gt; &lt;a href="http://www.nabble.com/Re%3A-properties-method-doesn%27t-work-well-with-self-created-map-p9709402.html" rel="nofollow"&gt;http://www.nabble.com/Re%3A-properties-method-doesn%27t-work-well-with-self-created-map-p9709402.html&lt;/a&gt; &lt;p&gt;Cheers,&lt;br /&gt; Jason&lt;/p&gt;&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p></p><p>@Dennis,<br /> Thanks for the kind feedback.</p> <blockquote>Does that mean that id is excluded from &ldquo;employee.properties = params&rdquo;?</blockquote> <p>Yes indeed.  As of Grails 0.4, the id is excluded from the binding.  For more info please see the following thread from the mailing list.</p> <a href="http://www.nabble.com/Re%3A-properties-method-doesn%27t-work-well-with-self-created-map-p9709402.html" rel="nofollow">http://www.nabble.com/Re%3A-properties-method-doesn%27t-work-well-with-self-created-map-p9709402.html</a> <p>Cheers,<br /> Jason</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Dennis Carroll</title>
		<link>http://jasonrudolph.com/blog/2006/06/20/hoisting-grails-to-your-legacy-db/#comment-4462</link>
		<dc:creator>Dennis Carroll</dc:creator>
		<pubDate>Thu, 03 May 2007 19:44:51 +0000</pubDate>
		<guid isPermaLink="false">http://jasonrudolph.com/blog/2006/06/20/hoisting-grails-to-your-legacy-db/#comment-4462</guid>
		<description>&lt;p&gt;Jason,&lt;/p&gt;

&lt;p&gt;Very nice work.  Thankyou. Followed the tutorial with v0.5. Had to add 
&lt;code&gt;
// Next line added for assigned key (i.e )
employee.id = params.id
&lt;/code&gt;
to EmployeeController save().&lt;/p&gt;

&lt;p&gt;Does that mean that id is excluded from "employee.properties = params"?&lt;/p&gt;

&lt;p&gt;Dennis&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Jason,</p>

<p>Very nice work.  Thankyou. Followed the tutorial with v0.5. Had to add 
<code>
// Next line added for assigned key (i.e )
employee.id = params.id
</code>
to EmployeeController save().</p>

<p>Does that mean that id is excluded from &#8220;employee.properties = params&#8221;?</p>

<p>Dennis</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Hamdi</title>
		<link>http://jasonrudolph.com/blog/2006/06/20/hoisting-grails-to-your-legacy-db/#comment-4214</link>
		<dc:creator>Hamdi</dc:creator>
		<pubDate>Mon, 16 Apr 2007 02:32:10 +0000</pubDate>
		<guid isPermaLink="false">http://jasonrudolph.com/blog/2006/06/20/hoisting-grails-to-your-legacy-db/#comment-4214</guid>
		<description>&lt;p&gt;Wow!&lt;/p&gt;

&lt;p&gt;That was fast. Do you sleep? :)&lt;/p&gt;

&lt;p&gt;I guess grails does not generate the schema by itself, like hibernate, does it? No problem though. Workarounds, like what you mentioned are available.&lt;/p&gt;

&lt;p&gt;Yup, Chapter 8 of Groovy in Action is one of my source to create by own builder. Just wondering whether there are more detail information regarding it that you may have. No problem. I'll continue with my experiment.&lt;/p&gt;

&lt;p&gt;Thanks again. Very helpful.&lt;/p&gt;

&lt;p&gt;Hamdi&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Wow!</p>

<p>That was fast. Do you sleep? <img src='http://jasonrudolph.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>

<p>I guess grails does not generate the schema by itself, like hibernate, does it? No problem though. Workarounds, like what you mentioned are available.</p>

<p>Yup, Chapter 8 of Groovy in Action is one of my source to create by own builder. Just wondering whether there are more detail information regarding it that you may have. No problem. I&#8217;ll continue with my experiment.</p>

<p>Thanks again. Very helpful.</p>

<p>Hamdi</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Jason Rudolph</title>
		<link>http://jasonrudolph.com/blog/2006/06/20/hoisting-grails-to-your-legacy-db/#comment-4213</link>
		<dc:creator>Jason Rudolph</dc:creator>
		<pubDate>Mon, 16 Apr 2007 02:11:49 +0000</pubDate>
		<guid isPermaLink="false">http://jasonrudolph.com/blog/2006/06/20/hoisting-grails-to-your-legacy-db/#comment-4213</guid>
		<description>&lt;p&gt;&lt;p&gt;@Hamdi,&lt;/p&gt; &lt;blockquote&gt;My usage scenarios for wanting the db schema itself, instead of Grails generating the db tables directly into the DB are: 1. For me to do any manual changes once, instead of going to the DB everytime (Dev DB, Test DB, Production DB). I prefer to change, tune it, etc, once, and use the db schema for all stages. 2. For me to submit to my DBA.&lt;/blockquote&gt; &lt;p&gt;Ah. I think see what you mean now. If you&#39;re wanting just to &lt;em&gt;tweak&lt;/em&gt; the database schema that Grails creates, you can try the following steps.&lt;/p&gt; &lt;ol&gt;    &lt;li&gt;Let Grails create the tables for you in your dev schema.&lt;/li&gt;   &lt;li&gt;Go into the database and make your adjustments.&lt;/li&gt;    &lt;li&gt;Comment out the &lt;code&gt;dbCreate&lt;/code&gt; property in all of your &lt;code&gt;grails-app/conf/*DataSource.groovy&lt;/code&gt; classes. (By doing so, Grails will no longer try to modify the schema in any way.)&lt;/li&gt;   &lt;li&gt;Export the DDL for your schema, and you (or your DBA) can use the DDL to create the schemas for your other enviroments.&lt;/li&gt; &lt;/ol&gt; &lt;blockquote&gt;Where can I get details on creating Builders?&lt;/blockquote&gt; &lt;p&gt;I recommend taking a look at Chapter 8 of &lt;a href="http://www.manning.com/koenig/" rel="nofollow"&gt;Groovy in Action&lt;/a&gt;.&lt;/p&gt; &lt;p&gt;I hope this helps.&lt;/p&gt; &lt;p&gt;Cheers,&lt;br /&gt; Jason&lt;/p&gt;&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p></p><p>@Hamdi,</p> <blockquote>My usage scenarios for wanting the db schema itself, instead of Grails generating the db tables directly into the DB are: 1. For me to do any manual changes once, instead of going to the DB everytime (Dev DB, Test DB, Production DB). I prefer to change, tune it, etc, once, and use the db schema for all stages. 2. For me to submit to my DBA.</blockquote> <p>Ah. I think see what you mean now. If you&#39;re wanting just to <em>tweak</em> the database schema that Grails creates, you can try the following steps.</p> <ol>    <li>Let Grails create the tables for you in your dev schema.</li>   <li>Go into the database and make your adjustments.</li>    <li>Comment out the <code>dbCreate</code> property in all of your <code>grails-app/conf/*DataSource.groovy</code> classes. (By doing so, Grails will no longer try to modify the schema in any way.)</li>   <li>Export the DDL for your schema, and you (or your DBA) can use the DDL to create the schemas for your other enviroments.</li> </ol> <blockquote>Where can I get details on creating Builders?</blockquote> <p>I recommend taking a look at Chapter 8 of <a href="http://www.manning.com/koenig/" rel="nofollow">Groovy in Action</a>.</p> <p>I hope this helps.</p> <p>Cheers,<br /> Jason</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Hamdi</title>
		<link>http://jasonrudolph.com/blog/2006/06/20/hoisting-grails-to-your-legacy-db/#comment-4211</link>
		<dc:creator>Hamdi</dc:creator>
		<pubDate>Mon, 16 Apr 2007 01:03:23 +0000</pubDate>
		<guid isPermaLink="false">http://jasonrudolph.com/blog/2006/06/20/hoisting-grails-to-your-legacy-db/#comment-4211</guid>
		<description>&lt;p&gt;Jason,&lt;/p&gt;

&lt;p&gt;Thanks for the fast reply!&lt;/p&gt;

&lt;p&gt;My usage scenarios for wanting the db schema itself, instead of Grails generating the db tables directly into the DB are:
1. For me to do any manual changes once, instead of going to the DB everytime (Dev DB, Test DB, Production DB). I prefer to change, tune it, etc, once, and use the db schema for all stages.
2. For me to submit to my DBA.&lt;/p&gt;

&lt;p&gt;One last question please. Where can I get details on creating Builders? I am extremely interested in DSL. I am experimenting with builders now but can't find any details to it. My source for information so far are from the groovy website, books (more on using builders) and grails builders (source code for Hibernate Criterion Builder, etc).&lt;/p&gt;

&lt;p&gt;Sorry for soo many questions for a groovy/grails newbie. Thanks again for your help.&lt;/p&gt;

&lt;p&gt;Hamdi&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Jason,</p>

<p>Thanks for the fast reply!</p>

<p>My usage scenarios for wanting the db schema itself, instead of Grails generating the db tables directly into the DB are:
1. For me to do any manual changes once, instead of going to the DB everytime (Dev DB, Test DB, Production DB). I prefer to change, tune it, etc, once, and use the db schema for all stages.
2. For me to submit to my DBA.</p>

<p>One last question please. Where can I get details on creating Builders? I am extremely interested in DSL. I am experimenting with builders now but can&#8217;t find any details to it. My source for information so far are from the groovy website, books (more on using builders) and grails builders (source code for Hibernate Criterion Builder, etc).</p>

<p>Sorry for soo many questions for a groovy/grails newbie. Thanks again for your help.</p>

<p>Hamdi</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Jason Rudolph</title>
		<link>http://jasonrudolph.com/blog/2006/06/20/hoisting-grails-to-your-legacy-db/#comment-4187</link>
		<dc:creator>Jason Rudolph</dc:creator>
		<pubDate>Sat, 14 Apr 2007 12:03:20 +0000</pubDate>
		<guid isPermaLink="false">http://jasonrudolph.com/blog/2006/06/20/hoisting-grails-to-your-legacy-db/#comment-4187</guid>
		<description>&lt;p&gt;&lt;p&gt;@Hamdi,&lt;/p&gt; &lt;blockquote&gt;Great article and great ebook! A pity it&#8217;s a bit out dated. Grails is really moving fast.&lt;/blockquote&gt; &lt;p&gt;Thanks for the kind words.  Grails is indeed progressing quickly, and this post is admittedly due for an update.&lt;/p&gt; &lt;p&gt;However, as of now, you &lt;em&gt;should&lt;/em&gt; still find the e-book to be quite relevant and far from outdated.  Be sure to check out the &lt;a href="http://jasonrudolph.com/gswg_faq.html" rel="nofollow"&gt;FAQ&lt;/a&gt; and the &lt;a href="http://jasonrudolph.com/blog/2007/03/13/getting-updated-with-grails-updated-source-code-available-for-grails-042/" rel="nofollow"&gt;latest source code&lt;/a&gt; to pick up any changes between Grails 0.3.1 (the current Grails release when the book was published) and Grails 0.4.2 (the current Grails release as of today).&lt;/p&gt; &lt;blockquote&gt;1. Is there a way to generate the hbm files from Grails, much like in hibernate?&lt;/blockquote&gt; &lt;p&gt;There was some discussion on this topic on the Grails mailing list that you may find helpful.&lt;/p&gt; &lt;p&gt;&lt;a href="http://www.nabble.com/Re%3A-Hibernate-mappings%2C-sequences%2C-etc.-p8967184.html" rel="nofollow"&gt;http://www.nabble.com/Re%3A-Hibernate-mappings%2C-sequences%2C-etc.-p8967184.html&lt;/a&gt;&lt;/p&gt; &lt;p&gt;On a similar note, the &lt;a href="http://grails.org/roadmap#Roadmap-Grails0.7" rel="nofollow"&gt;Grails roadmap&lt;/a&gt; includes future support for generating the domain model from the database.&lt;/p&gt; &lt;blockquote&gt;2. For normal Grails usage, nor [sic] using legacy db, is there a way to generate the db schema, also like hibernate?&lt;/blockquote&gt; &lt;p&gt;By default, Grails will indeed &lt;a href="http://grails.org/Configuration#Configuration-AutomaticDatabaseGeneration" rel="nofollow"&gt;generate the database tables&lt;/a&gt; for you.  See the &lt;code&gt;dbCreate&lt;/code&gt; option in &lt;code&gt;grails-app/conf/*DataSource.groovy&lt;/code&gt;.&lt;/p&gt; &lt;p&gt;I hope this helps.&lt;/p&gt; &lt;p&gt;Cheers,&lt;br /&gt; Jason&lt;br /&gt; &lt;/p&gt;&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p></p><p>@Hamdi,</p> <blockquote>Great article and great ebook! A pity it&rsquo;s a bit out dated. Grails is really moving fast.</blockquote> <p>Thanks for the kind words.  Grails is indeed progressing quickly, and this post is admittedly due for an update.</p> <p>However, as of now, you <em>should</em> still find the e-book to be quite relevant and far from outdated.  Be sure to check out the <a href="http://jasonrudolph.com/gswg_faq.html" rel="nofollow">FAQ</a> and the <a href="http://jasonrudolph.com/blog/2007/03/13/getting-updated-with-grails-updated-source-code-available-for-grails-042/" rel="nofollow">latest source code</a> to pick up any changes between Grails 0.3.1 (the current Grails release when the book was published) and Grails 0.4.2 (the current Grails release as of today).</p> <blockquote>1. Is there a way to generate the hbm files from Grails, much like in hibernate?</blockquote> <p>There was some discussion on this topic on the Grails mailing list that you may find helpful.</p> <p><a href="http://www.nabble.com/Re%3A-Hibernate-mappings%2C-sequences%2C-etc.-p8967184.html" rel="nofollow">http://www.nabble.com/Re%3A-Hibernate-mappings%2C-sequences%2C-etc.-p8967184.html</a></p> <p>On a similar note, the <a href="http://grails.org/roadmap#Roadmap-Grails0.7" rel="nofollow">Grails roadmap</a> includes future support for generating the domain model from the database.</p> <blockquote>2. For normal Grails usage, nor [sic] using legacy db, is there a way to generate the db schema, also like hibernate?</blockquote> <p>By default, Grails will indeed <a href="http://grails.org/Configuration#Configuration-AutomaticDatabaseGeneration" rel="nofollow">generate the database tables</a> for you.  See the <code>dbCreate</code> option in <code>grails-app/conf/*DataSource.groovy</code>.</p> <p>I hope this helps.</p> <p>Cheers,<br /> Jason<br /> </p>]]></content:encoded>
	</item>
	<item>
		<title>By: Hamdi</title>
		<link>http://jasonrudolph.com/blog/2006/06/20/hoisting-grails-to-your-legacy-db/#comment-4168</link>
		<dc:creator>Hamdi</dc:creator>
		<pubDate>Fri, 13 Apr 2007 10:11:51 +0000</pubDate>
		<guid isPermaLink="false">http://jasonrudolph.com/blog/2006/06/20/hoisting-grails-to-your-legacy-db/#comment-4168</guid>
		<description>&lt;p&gt;Hi!&lt;/p&gt;

&lt;p&gt;Great article and great ebook! A pity it's a bit out dated. Grails is really moving fast.&lt;/p&gt;

&lt;p&gt;Some questions from a newbie:
1. Is there a way to generate the hbm files from Grails, much like in hibernate?
2. For normal Grails usage, nor using legacy db, is there a way to generate the db schema, also like hibernate?&lt;/p&gt;

&lt;p&gt;Sorry if asking here is inappropriate. Not sure where to ask really.&lt;/p&gt;

&lt;p&gt;Thanks,&lt;/p&gt;

&lt;p&gt;Hamdi&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hi!</p>

<p>Great article and great ebook! A pity it&#8217;s a bit out dated. Grails is really moving fast.</p>

<p>Some questions from a newbie:
1. Is there a way to generate the hbm files from Grails, much like in hibernate?
2. For normal Grails usage, nor using legacy db, is there a way to generate the db schema, also like hibernate?</p>

<p>Sorry if asking here is inappropriate. Not sure where to ask really.</p>

<p>Thanks,</p>

<p>Hamdi</p>]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 1.565 seconds -->
