<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Generating DDL Scripts from JPA Annotations with Maven</title>
	<atom:link href="http://unmaintainable.wordpress.com/2008/04/12/hibernate3-schema-creation/feed/" rel="self" type="application/rss+xml" />
	<link>http://unmaintainable.wordpress.com/2008/04/12/hibernate3-schema-creation/</link>
	<description>Scripting, Software Engineering and Stuff in Between</description>
	<lastBuildDate>Thu, 17 Dec 2009 10:18:45 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Shrirang</title>
		<link>http://unmaintainable.wordpress.com/2008/04/12/hibernate3-schema-creation/#comment-5084</link>
		<dc:creator>Shrirang</dc:creator>
		<pubDate>Thu, 17 Dec 2009 10:18:45 +0000</pubDate>
		<guid isPermaLink="false">http://unmaintainable.wordpress.com/?p=51#comment-5084</guid>
		<description>Persistence.xml need not be directly in classpath. It expects it to be in folder META-INF</description>
		<content:encoded><![CDATA[<p>Persistence.xml need not be directly in classpath. It expects it to be in folder META-INF</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chandan Benjaram</title>
		<link>http://unmaintainable.wordpress.com/2008/04/12/hibernate3-schema-creation/#comment-4913</link>
		<dc:creator>Chandan Benjaram</dc:creator>
		<pubDate>Sun, 26 Oct 2008 01:04:26 +0000</pubDate>
		<guid isPermaLink="false">http://unmaintainable.wordpress.com/?p=51#comment-4913</guid>
		<description>Hi-

I am trying your approach to generate db(MySQL) schema out of JPA Annotations in Maven way. I am getting following error during project build:
&#039;[ERROR] Persistence unit not found: &#039;someunit&#039;.
Build errors for server; org.apache.maven.lifecycle.LifecycleExecutionException: Internal error in the plugin manager executing goal &#039;org.codehaus.mojo:hibernate3-maven-plugin:2.0-alpha-2:hbm2ddl&#039;: Mojo execution failed.&#039;

I have my persistence unit in META-INF/persistence.xml and this is the only one XML in my whole project.

For your information, here is my POM.xml hibernate3-maven configuration snippet:
		
				org.codehaus.mojo
				hibernate3-maven-plugin
				2.0-alpha-2
				
					
						
							hbm2ddl
							annotationconfiguration
						
					
					
	
						true
						true
						true
                jpaconfiguration
                        someunit
                        schema.sql
						schema.sql
						
							target/test-classes
							target/test-classes
						
						${maven.test.skip}
					
				
				
					
						process-test-resources
						
							hbm2ddl
						
					
				
			

I tried in Ant way, still no GO :-(
I verified perstence.xml and its is getting into classpath of application.
Do you have any idea about whats wrong with this?

-Chandan Benjaram</description>
		<content:encoded><![CDATA[<p>Hi-</p>
<p>I am trying your approach to generate db(MySQL) schema out of JPA Annotations in Maven way. I am getting following error during project build:<br />
&#8216;[ERROR] Persistence unit not found: &#8217;someunit&#8217;.<br />
Build errors for server; org.apache.maven.lifecycle.LifecycleExecutionException: Internal error in the plugin manager executing goal &#8216;org.codehaus.mojo:hibernate3-maven-plugin:2.0-alpha-2:hbm2ddl&#8217;: Mojo execution failed.&#8217;</p>
<p>I have my persistence unit in META-INF/persistence.xml and this is the only one XML in my whole project.</p>
<p>For your information, here is my POM.xml hibernate3-maven configuration snippet:</p>
<p>				org.codehaus.mojo<br />
				hibernate3-maven-plugin<br />
				2.0-alpha-2</p>
<p>							hbm2ddl<br />
							annotationconfiguration</p>
<p>						true<br />
						true<br />
						true<br />
                jpaconfiguration<br />
                        someunit<br />
                        schema.sql<br />
						schema.sql</p>
<p>							target/test-classes<br />
							target/test-classes</p>
<p>						${maven.test.skip}</p>
<p>						process-test-resources</p>
<p>							hbm2ddl</p>
<p>I tried in Ant way, still no GO :-(<br />
I verified perstence.xml and its is getting into classpath of application.<br />
Do you have any idea about whats wrong with this?</p>
<p>-Chandan Benjaram</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kwan</title>
		<link>http://unmaintainable.wordpress.com/2008/04/12/hibernate3-schema-creation/#comment-4898</link>
		<dc:creator>Kwan</dc:creator>
		<pubDate>Fri, 22 Aug 2008 08:30:47 +0000</pubDate>
		<guid isPermaLink="false">http://unmaintainable.wordpress.com/?p=51#comment-4898</guid>
		<description>When using hibernate config (not jpaConfiguration), these following lines applied (position hibernate.cfg.xml at absolute pasth):-

						
							hbm2ddl
							
								annotationconfiguration  
							
						
					
					
						
							annotationconfiguration 
						
						
							hibernate.cfg.xml
						

/Kwan</description>
		<content:encoded><![CDATA[<p>When using hibernate config (not jpaConfiguration), these following lines applied (position hibernate.cfg.xml at absolute pasth):-</p>
<p>							hbm2ddl</p>
<p>								annotationconfiguration  </p>
<p>							annotationconfiguration </p>
<p>							hibernate.cfg.xml</p>
<p>/Kwan</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mafr</title>
		<link>http://unmaintainable.wordpress.com/2008/04/12/hibernate3-schema-creation/#comment-4867</link>
		<dc:creator>mafr</dc:creator>
		<pubDate>Sat, 05 Jul 2008 15:31:44 +0000</pubDate>
		<guid isPermaLink="false">http://unmaintainable.wordpress.com/?p=51#comment-4867</guid>
		<description>The plugin doesn&#039;t know for which flavor of database it should generate the DDL script. You have to supply the &quot;hibernate.dialect&quot; property somehow, either using a hibernate.cfg.xml file or via persistence.xml where you can also set properties for a persistence unit.</description>
		<content:encoded><![CDATA[<p>The plugin doesn&#8217;t know for which flavor of database it should generate the DDL script. You have to supply the &#8220;hibernate.dialect&#8221; property somehow, either using a hibernate.cfg.xml file or via persistence.xml where you can also set properties for a persistence unit.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bruce</title>
		<link>http://unmaintainable.wordpress.com/2008/04/12/hibernate3-schema-creation/#comment-4864</link>
		<dc:creator>Bruce</dc:creator>
		<pubDate>Thu, 03 Jul 2008 17:09:23 +0000</pubDate>
		<guid isPermaLink="false">http://unmaintainable.wordpress.com/?p=51#comment-4864</guid>
		<description>Hi,
I&#039;m getting the following error. I don&#039;t have a hibernate config but other than trying to generate the ddl everything works fine. Do I need this file just so that the ddl can be generated?

Thanks

Bruce
[INFO] src/main/resources/hibernate.cfg.xml not found within the project. Trying absolute path.
[INFO] No hibernate configuration file loaded.
[INFO] src/main/resources/database.properties not found within the project. Trying absolute path.
[INFO] No hibernate properties file loaded.
[INFO] ------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO] ------------------------------------------------------------------------
[INFO] The dialect was not set. Set the property hibernate.dialect.
[INFO] ------------------------------------------------------------------------</description>
		<content:encoded><![CDATA[<p>Hi,<br />
I&#8217;m getting the following error. I don&#8217;t have a hibernate config but other than trying to generate the ddl everything works fine. Do I need this file just so that the ddl can be generated?</p>
<p>Thanks</p>
<p>Bruce<br />
[INFO] src/main/resources/hibernate.cfg.xml not found within the project. Trying absolute path.<br />
[INFO] No hibernate configuration file loaded.<br />
[INFO] src/main/resources/database.properties not found within the project. Trying absolute path.<br />
[INFO] No hibernate properties file loaded.<br />
[INFO] &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
[ERROR] FATAL ERROR<br />
[INFO] &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
[INFO] The dialect was not set. Set the property hibernate.dialect.<br />
[INFO] &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mafr</title>
		<link>http://unmaintainable.wordpress.com/2008/04/12/hibernate3-schema-creation/#comment-4852</link>
		<dc:creator>mafr</dc:creator>
		<pubDate>Wed, 04 Jun 2008 16:39:45 +0000</pubDate>
		<guid isPermaLink="false">http://unmaintainable.wordpress.com/?p=51#comment-4852</guid>
		<description>In your persistence.xml you&#039;ll find an element &quot;persistence-unit&quot; with an attribute &quot;name&quot;. The value of this attribute has to match &quot;persistenceunit&quot; in your maven configuration. You can set them both to &quot;Default&quot;, for example.

You don&#039;t have to add mappings to hibernate.cfg.xml. The maven plugin finds them automatically.

Cheers,
  Matthias</description>
		<content:encoded><![CDATA[<p>In your persistence.xml you&#8217;ll find an element &#8220;persistence-unit&#8221; with an attribute &#8220;name&#8221;. The value of this attribute has to match &#8220;persistenceunit&#8221; in your maven configuration. You can set them both to &#8220;Default&#8221;, for example.</p>
<p>You don&#8217;t have to add mappings to hibernate.cfg.xml. The maven plugin finds them automatically.</p>
<p>Cheers,<br />
  Matthias</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kumar</title>
		<link>http://unmaintainable.wordpress.com/2008/04/12/hibernate3-schema-creation/#comment-4851</link>
		<dc:creator>kumar</dc:creator>
		<pubDate>Wed, 04 Jun 2008 11:30:06 +0000</pubDate>
		<guid isPermaLink="false">http://unmaintainable.wordpress.com/?p=51#comment-4851</guid>
		<description>hi,
what do you mean by &quot;Don’t forget to set the persistence unit to whatever you declared in persistence.xml&quot;

To use this do I need to add mappings to all my annotated classes in hibernate.cfg.xml??
thx</description>
		<content:encoded><![CDATA[<p>hi,<br />
what do you mean by &#8220;Don’t forget to set the persistence unit to whatever you declared in persistence.xml&#8221;</p>
<p>To use this do I need to add mappings to all my annotated classes in hibernate.cfg.xml??<br />
thx</p>
]]></content:encoded>
	</item>
</channel>
</rss>
