<?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: Generate JPA (or GORM) classes from your database for Java and Grails</title>
	<atom:link href="http://www.javarants.com/2007/10/14/generate-jpa-or-gorm-classes-from-your-database-for-java-and-grails/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.javarants.com/2007/10/14/generate-jpa-or-gorm-classes-from-your-database-for-java-and-grails/</link>
	<description>Rants about Java and other internet technologies by Sam Pullara</description>
	<pubDate>Thu, 28 Aug 2008 11:30:59 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.1</generator>
		<item>
		<title>By: Jungle Java</title>
		<link>http://www.javarants.com/2007/10/14/generate-jpa-or-gorm-classes-from-your-database-for-java-and-grails/#comment-39</link>
		<dc:creator>Jungle Java</dc:creator>
		<pubDate>Sat, 20 Oct 2007 12:52:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.javarants.com/2007/10/14/generate-jpa-or-gorm-classes-from-your-database-for-java-and-grails/#comment-39</guid>
		<description>&lt;strong&gt;Jungle Java - Grails 1.0 RC1 リリース&lt;/strong&gt;

「Grails 1.0 RC1」 がリリースされました。O/R マッピングのための DSL が導入されるなどの変更・改善が行われています。また、「DBMapper plugin」 などのプラグインも登場しています。</description>
		<content:encoded><![CDATA[<p><strong>Jungle Java - Grails 1.0 RC1 リリース</strong></p>
<p>「Grails 1.0 RC1」 がリリースされました。O/R マッピングのための DSL が導入されるなどの変更・改善が行われています。また、「DBMapper plugin」 などのプラグインも登場しています。</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stephan Schmidt</title>
		<link>http://www.javarants.com/2007/10/14/generate-jpa-or-gorm-classes-from-your-database-for-java-and-grails/#comment-38</link>
		<dc:creator>Stephan Schmidt</dc:creator>
		<pubDate>Mon, 15 Oct 2007 15:30:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.javarants.com/2007/10/14/generate-jpa-or-gorm-classes-from-your-database-for-java-and-grails/#comment-38</guid>
		<description>Hi Sam,

thanks for the feedback, I'll try RC1 and see if it works. When you try JPA directly later, it would be nice to drop me a note with
the result, perhaps on my blog / using mail.

Thanks
-stephan</description>
		<content:encoded><![CDATA[<p>Hi Sam,</p>
<p>thanks for the feedback, I&#8217;ll try RC1 and see if it works. When you try JPA directly later, it would be nice to drop me a note with<br />
the result, perhaps on my blog / using mail.</p>
<p>Thanks<br />
-stephan</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sam</title>
		<link>http://www.javarants.com/2007/10/14/generate-jpa-or-gorm-classes-from-your-database-for-java-and-grails/#comment-37</link>
		<dc:creator>sam</dc:creator>
		<pubDate>Mon, 15 Oct 2007 15:15:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.javarants.com/2007/10/14/generate-jpa-or-gorm-classes-from-your-database-for-java-and-grails/#comment-37</guid>
		<description>&lt;blockquote&gt;&lt;p&gt;I tried it with Oracle, got an “ORA-00942 Table or View does not exist”. Any Ideas ?&lt;/p&gt;
&lt;p&gt;java -classpath .;ojdbc5.jar;dbmap-r12.jar com.moonspider.dbmap.Generator -url jdbc:oracle:thin:@192.168.1.220:1521:mydb -user myuser -password mypass -driver oracle.jdbc.driver.OracleDriver -d mydb&lt;br&gt;
Error: java.sql.SQLException: ORA-00942: Tabelle oder View nicht vorhanden&lt;/p&gt;
&lt;p&gt;Usage: com.moonspider.dbmap.GenerateConfig&lt;br&gt;
…&lt;/p&gt;
&lt;/blockquote&gt;

Hi Parker,

I've added an issue to the tracker on the site: http://code.google.com/p/dbmapper/issues/detail?id=1 .  Can you rerun the command line with -Ddebug=true and post the stacktrace to the issue that I've opened?

Thanks,
Sam</description>
		<content:encoded><![CDATA[<blockquote><p>I tried it with Oracle, got an “ORA-00942 Table or View does not exist”. Any Ideas ?</p>
<p>java -classpath .;ojdbc5.jar;dbmap-r12.jar com.moonspider.dbmap.Generator -url jdbc:oracle:thin:@192.168.1.220:1521:mydb -user myuser -password mypass -driver oracle.jdbc.driver.OracleDriver -d mydb<br />
Error: java.sql.SQLException: ORA-00942: Tabelle oder View nicht vorhanden</p>
<p>Usage: com.moonspider.dbmap.GenerateConfig<br />
…</p>
</blockquote>
<p>Hi Parker,</p>
<p>I&#8217;ve added an issue to the tracker on the site: <a href="http://code.google.com/p/dbmapper/issues/detail?id=1" rel="nofollow">http://code.google.com/p/dbmapper/issues/detail?id=1</a> .  Can you rerun the command line with -Ddebug=true and post the stacktrace to the issue that I&#8217;ve opened?</p>
<p>Thanks,<br />
Sam</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Parker</title>
		<link>http://www.javarants.com/2007/10/14/generate-jpa-or-gorm-classes-from-your-database-for-java-and-grails/#comment-35</link>
		<dc:creator>Parker</dc:creator>
		<pubDate>Mon, 15 Oct 2007 14:50:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.javarants.com/2007/10/14/generate-jpa-or-gorm-classes-from-your-database-for-java-and-grails/#comment-35</guid>
		<description>I tried it with Oracle, got an "ORA-00942 Table or View does not exist". Any Ideas ?

java -classpath .;ojdbc5.jar;dbmap-r12.jar com.moonspider.dbmap.Generator -url jdbc:oracle:thin:@192.168.1.220:1521:mydb -user myuser -password mypass -driver oracle.jdbc.driver.OracleDriver -d mydb
Error: java.sql.SQLException: ORA-00942: Tabelle oder View nicht vorhanden

Usage: com.moonspider.dbmap.GenerateConfig
...</description>
		<content:encoded><![CDATA[<p>I tried it with Oracle, got an &#8220;ORA-00942 Table or View does not exist&#8221;. Any Ideas ?</p>
<p>java -classpath .;ojdbc5.jar;dbmap-r12.jar com.moonspider.dbmap.Generator -url jdbc:oracle:thin:@192.168.1.220:1521:mydb -user myuser -password mypass -driver oracle.jdbc.driver.OracleDriver -d mydb<br />
Error: java.sql.SQLException: ORA-00942: Tabelle oder View nicht vorhanden</p>
<p>Usage: com.moonspider.dbmap.GenerateConfig<br />
&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sam</title>
		<link>http://www.javarants.com/2007/10/14/generate-jpa-or-gorm-classes-from-your-database-for-java-and-grails/#comment-33</link>
		<dc:creator>sam</dc:creator>
		<pubDate>Mon, 15 Oct 2007 14:26:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.javarants.com/2007/10/14/generate-jpa-or-gorm-classes-from-your-database-for-java-and-grails/#comment-33</guid>
		<description>Hi Stephen,

The Grails support is tested with the Grail-1.0-RC1 nightly build, not the currently stable release, because there are a number of new features that I needed to leverage.  I also just use the built-in Hibernate support rather than trying to call out to the EntityManager myself -- I'm still using GORM, just with my JPA based annotation classes rather than Groovy based GORM classes.  The one thing I forgot to note here though is that you have to tell GORM about the annotations:

import org.codehaus.groovy.grails.orm.hibernate.cfg.GrailsAnnotationConfiguration
dataSource {
        configClass = GrailsAnnotationConfiguration.class

Otherwise GORM won't see the domain classes.  As for using real JPA APIs I haven't tested it.  I will try it later and see what I find.

Sam</description>
		<content:encoded><![CDATA[<p>Hi Stephen,</p>
<p>The Grails support is tested with the Grail-1.0-RC1 nightly build, not the currently stable release, because there are a number of new features that I needed to leverage.  I also just use the built-in Hibernate support rather than trying to call out to the EntityManager myself &#8212; I&#8217;m still using GORM, just with my JPA based annotation classes rather than Groovy based GORM classes.  The one thing I forgot to note here though is that you have to tell GORM about the annotations:</p>
<p>import org.codehaus.groovy.grails.orm.hibernate.cfg.GrailsAnnotationConfiguration<br />
dataSource {<br />
        configClass = GrailsAnnotationConfiguration.class</p>
<p>Otherwise GORM won&#8217;t see the domain classes.  As for using real JPA APIs I haven&#8217;t tested it.  I will try it later and see what I find.</p>
<p>Sam</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stephan Schmidt</title>
		<link>http://www.javarants.com/2007/10/14/generate-jpa-or-gorm-classes-from-your-database-for-java-and-grails/#comment-32</link>
		<dc:creator>Stephan Schmidt</dc:creator>
		<pubDate>Mon, 15 Oct 2007 12:35:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.javarants.com/2007/10/14/generate-jpa-or-gorm-classes-from-your-database-for-java-and-grails/#comment-32</guid>
		<description>Hi,

I've read your article and currently I play with Grails and JPA. When I use both together the application hangs.

http://stephan.reposita.org/archives/2007/10/15/grails-hibernate-and-jpa-hanging-application/

Do you have any ideas? Did you successfully use JPA with Grails?

Thanks
-stephan</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I&#8217;ve read your article and currently I play with Grails and JPA. When I use both together the application hangs.</p>
<p><a href="http://stephan.reposita.org/archives/2007/10/15/grails-hibernate-and-jpa-hanging-application/" rel="nofollow">http://stephan.reposita.org/archives/2007/10/15/grails-hibernate-and-jpa-hanging-application/</a></p>
<p>Do you have any ideas? Did you successfully use JPA with Grails?</p>
<p>Thanks<br />
-stephan</p>
]]></content:encoded>
	</item>
</channel>
</rss>
