<?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 using in-memory databases</title>
	<atom:link href="http://www.adeptechllc.com/2009/07/02/unit-testing-using-in-memory-databases/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.adeptechllc.com/2009/07/02/unit-testing-using-in-memory-databases/</link>
	<description>Software, Agile Process and Security</description>
	<lastBuildDate>Wed, 07 Jul 2010 21:25:24 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Keith McMillan</title>
		<link>http://www.adeptechllc.com/2009/07/02/unit-testing-using-in-memory-databases/comment-page-1/#comment-4644</link>
		<dc:creator>Keith McMillan</dc:creator>
		<pubDate>Wed, 28 Apr 2010 16:00:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.adeptechllc.com/?p=224#comment-4644</guid>
		<description>Hello Felipe,

I have a pretty good guess what’s going on. HSQL with the in-memory database creates files in the PUBLIC schema, regardless of what you tell it to use. Since you’re using annotations, it may be difficult for you to swap out what schema hibernate is using in production vs unit testing, but that’s what you need to do. If you externalize your Hibernate mappings into XML, you might have an easier time.

Good luck!
Keith</description>
		<content:encoded><![CDATA[<p>Hello Felipe,</p>
<p>I have a pretty good guess what’s going on. HSQL with the in-memory database creates files in the PUBLIC schema, regardless of what you tell it to use. Since you’re using annotations, it may be difficult for you to swap out what schema hibernate is using in production vs unit testing, but that’s what you need to do. If you externalize your Hibernate mappings into XML, you might have an easier time.</p>
<p>Good luck!<br />
Keith</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Felipe</title>
		<link>http://www.adeptechllc.com/2009/07/02/unit-testing-using-in-memory-databases/comment-page-1/#comment-4642</link>
		<dc:creator>Felipe</dc:creator>
		<pubDate>Tue, 27 Apr 2010 18:31:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.adeptechllc.com/?p=224#comment-4642</guid>
		<description>Hey, Keith,
 I&#039;ve tried using this class you&#039;ve created but for some reason it doesn&#039;t seem to be creating the schema.
 My create_database.sql (maybe you could post an example of create_database.sql) has a single line: 
CREATE SCHEMA UM5P AUTHORIZATION DBA
 My hibernate entities are annotated as the example: 
@Entity
@Table(name=&quot;PTC&quot;,schema=&quot;UM5P&quot;)
public class Ptc ...

 Funny thing is if I use HSQLDB in file mode, and put the UM5P schema creation in the .script file generated by HSQLDB, it works fine, but I can&#039;t seem to make it work in mem mode. Any wild guesses?

Thank you</description>
		<content:encoded><![CDATA[<p>Hey, Keith,<br />
 I&#8217;ve tried using this class you&#8217;ve created but for some reason it doesn&#8217;t seem to be creating the schema.<br />
 My create_database.sql (maybe you could post an example of create_database.sql) has a single line:<br />
CREATE SCHEMA UM5P AUTHORIZATION DBA<br />
 My hibernate entities are annotated as the example:<br />
@Entity<br />
@Table(name=&#8221;PTC&#8221;,schema=&#8221;UM5P&#8221;)<br />
public class Ptc &#8230;</p>
<p> Funny thing is if I use HSQLDB in file mode, and put the UM5P schema creation in the .script file generated by HSQLDB, it works fine, but I can&#8217;t seem to make it work in mem mode. Any wild guesses?</p>
<p>Thank you</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Keith McMillan</title>
		<link>http://www.adeptechllc.com/2009/07/02/unit-testing-using-in-memory-databases/comment-page-1/#comment-4618</link>
		<dc:creator>Keith McMillan</dc:creator>
		<pubDate>Wed, 14 Oct 2009 02:50:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.adeptechllc.com/?p=224#comment-4618</guid>
		<description>Hi Jaime,

I also tried a schema other than PUBLIC when I first started trying to use HSQLDB, but if I recall correctly, you must use PUBLIC for an in-memory database. If I&#039;m remembering correctly, this is because that&#039;s hard-coded in HSQLDB for the in-memory driver.

Is it important that you use a name other than PUBLIC? The database will be destroyed when your JVM exits after all.

Hope this helps.

Keith</description>
		<content:encoded><![CDATA[<p>Hi Jaime,</p>
<p>I also tried a schema other than PUBLIC when I first started trying to use HSQLDB, but if I recall correctly, you must use PUBLIC for an in-memory database. If I&#8217;m remembering correctly, this is because that&#8217;s hard-coded in HSQLDB for the in-memory driver.</p>
<p>Is it important that you use a name other than PUBLIC? The database will be destroyed when your JVM exits after all.</p>
<p>Hope this helps.</p>
<p>Keith</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jaime</title>
		<link>http://www.adeptechllc.com/2009/07/02/unit-testing-using-in-memory-databases/comment-page-1/#comment-4616</link>
		<dc:creator>jaime</dc:creator>
		<pubDate>Tue, 13 Oct 2009 22:00:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.adeptechllc.com/?p=224#comment-4616</guid>
		<description>hi, thank you for the article, now i&#039;m using your approach, but I have I problem trying to use another schema instead of public, say &quot;TESTSCHEMA&quot;</description>
		<content:encoded><![CDATA[<p>hi, thank you for the article, now i&#8217;m using your approach, but I have I problem trying to use another schema instead of public, say &#8220;TESTSCHEMA&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Some unfortunate behavior in DBUnit &#124; Adept Technologies</title>
		<link>http://www.adeptechllc.com/2009/07/02/unit-testing-using-in-memory-databases/comment-page-1/#comment-4612</link>
		<dc:creator>Some unfortunate behavior in DBUnit &#124; Adept Technologies</dc:creator>
		<pubDate>Tue, 07 Jul 2009 13:24:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.adeptechllc.com/?p=224#comment-4612</guid>
		<description>[...] Unit testing using in-memory databases [...]</description>
		<content:encoded><![CDATA[<p>[...] Unit testing using in-memory databases [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
