<?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/"
		>
<channel>
	<title>Comments on: Unit Testing Hibernate Code With Derby</title>
	<atom:link href="http://indiwiz.com/2009/01/05/unit-testing-hibernate-code-with-derby/feed/" rel="self" type="application/rss+xml" />
	<link>http://indiwiz.com/2009/01/05/unit-testing-hibernate-code-with-derby/</link>
	<description>Subhash&#039;s Tech Log</description>
	<lastBuildDate>Thu, 23 Jun 2011 14:23:23 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Parth</title>
		<link>http://indiwiz.com/2009/01/05/unit-testing-hibernate-code-with-derby/comment-page-1/#comment-1379</link>
		<dc:creator>Parth</dc:creator>
		<pubDate>Thu, 23 Dec 2010 15:48:57 +0000</pubDate>
		<guid isPermaLink="false">http://indiwiz.com/?p=138#comment-1379</guid>
		<description>Not working for me... getting NullPointer Exception at session.save(object);</description>
		<content:encoded><![CDATA[<p>Not working for me&#8230; getting NullPointer Exception at session.save(object);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: BP-2000</title>
		<link>http://indiwiz.com/2009/01/05/unit-testing-hibernate-code-with-derby/comment-page-1/#comment-982</link>
		<dc:creator>BP-2000</dc:creator>
		<pubDate>Thu, 02 Dec 2010 13:57:02 +0000</pubDate>
		<guid isPermaLink="false">http://indiwiz.com/?p=138#comment-982</guid>
		<description>Hi,
I&#039;m wondering how you would make Derby create and alter the tables given a specific DDL/DML instead of having Hibernate create the tables. That is, I would like use  in the persistence.xml and have the tables created from a certain DDL (by Derby).

My current problem is that in production I have a separate DDL and DML and only let Hibernate validate the schema; but I also want to use those DDL/DML in my unit tests instead of having Hibernate create the tables in a manner different from the DDL/DML.</description>
		<content:encoded><![CDATA[<p>Hi,<br />
I&#8217;m wondering how you would make Derby create and alter the tables given a specific DDL/DML instead of having Hibernate create the tables. That is, I would like use  in the persistence.xml and have the tables created from a certain DDL (by Derby).</p>
<p>My current problem is that in production I have a separate DDL and DML and only let Hibernate validate the schema; but I also want to use those DDL/DML in my unit tests instead of having Hibernate create the tables in a manner different from the DDL/DML.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: chas66</title>
		<link>http://indiwiz.com/2009/01/05/unit-testing-hibernate-code-with-derby/comment-page-1/#comment-26</link>
		<dc:creator>chas66</dc:creator>
		<pubDate>Sun, 10 May 2009 01:20:11 +0000</pubDate>
		<guid isPermaLink="false">http://indiwiz.com/?p=138#comment-26</guid>
		<description>Hi,
I&#039;m not sure what kind of testing you&#039;re talking about, but you may want to check out the unitils project at http://www.unitils.org/summary.html .  Among other things using it enables easy setup and teardown of databases for testing.  On a similar note, another project I&#039;ve recently discovered and found very useful is Liquibase at http://www.liquibase.org/  This gives robust change managment of databases schemas etc rather than relying on Hibernate hbm2ddl.auto, which does not help with versioning or upgrades of the persistence layer.
Cheers!
Chas66</description>
		<content:encoded><![CDATA[<p>Hi,<br />
I&#8217;m not sure what kind of testing you&#8217;re talking about, but you may want to check out the unitils project at <a href="http://www.unitils.org/summary.html" rel="nofollow">http://www.unitils.org/summary.html</a> .  Among other things using it enables easy setup and teardown of databases for testing.  On a similar note, another project I&#8217;ve recently discovered and found very useful is Liquibase at <a href="http://www.liquibase.org/" rel="nofollow">http://www.liquibase.org/</a>  This gives robust change managment of databases schemas etc rather than relying on Hibernate hbm2ddl.auto, which does not help with versioning or upgrades of the persistence layer.<br />
Cheers!<br />
Chas66</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: subwiz</title>
		<link>http://indiwiz.com/2009/01/05/unit-testing-hibernate-code-with-derby/comment-page-1/#comment-24</link>
		<dc:creator>subwiz</dc:creator>
		<pubDate>Sat, 24 Jan 2009 14:27:06 +0000</pubDate>
		<guid isPermaLink="false">http://indiwiz.com/?p=138#comment-24</guid>
		<description>We did not face this as limitation in our test code. Our actual code was on Oracle, and the test in Derby. The .hbm.xml had the following for the primary key field in Oracle:

&lt;generator class=&quot;sequence&quot;&gt;
    &lt;param name=&quot;sequence&quot;&gt;sequence_name&lt;/param&gt;
&lt;/generator&gt;

and this for Derby:

&lt;generator class=&quot;identity&quot;/&gt;</description>
		<content:encoded><![CDATA[<p>We did not face this as limitation in our test code. Our actual code was on Oracle, and the test in Derby. The .hbm.xml had the following for the primary key field in Oracle:</p>
<p>&lt;generator class=&quot;sequence&quot;&gt;<br />
    &lt;param name=&quot;sequence&quot;&gt;sequence_name&lt;/param&gt;<br />
&lt;/generator&gt;</p>
<p>and this for Derby:</p>
<p>&lt;generator class=&quot;identity&quot;/&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Binil Thomas</title>
		<link>http://indiwiz.com/2009/01/05/unit-testing-hibernate-code-with-derby/comment-page-1/#comment-25</link>
		<dc:creator>Binil Thomas</dc:creator>
		<pubDate>Tue, 20 Jan 2009 04:02:47 +0000</pubDate>
		<guid isPermaLink="false">http://indiwiz.com/?p=138#comment-25</guid>
		<description>The most disappointing thing about Derby though is the lack of sequences. See https://issues.apache.org/jira/browse/DERBY-712.</description>
		<content:encoded><![CDATA[<p>The most disappointing thing about Derby though is the lack of sequences. See <a href="https://issues.apache.org/jira/browse/DERBY-712" rel="nofollow">https://issues.apache.org/jira/browse/DERBY-712</a>.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

