<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>ryan norris &#187; hibernate</title>
	<atom:link href="http://www.ryannorris.com/tag/hibernate/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ryannorris.com</link>
	<description>managing software teams and delivering great results</description>
	<lastBuildDate>Fri, 25 Jun 2010 13:44:27 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Diving back into Java, and liking it (mostly)</title>
		<link>http://www.ryannorris.com/2009/04/08/diving-back-into-java-and-liking-it-mostly/</link>
		<comments>http://www.ryannorris.com/2009/04/08/diving-back-into-java-and-liking-it-mostly/#comments</comments>
		<pubDate>Wed, 08 Apr 2009 15:53:14 +0000</pubDate>
		<dc:creator>Ryan Norris</dc:creator>
				<category><![CDATA[Building Better Software]]></category>
		<category><![CDATA[Enterprise Architecture]]></category>
		<category><![CDATA[Java Development]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[hibernate]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[jpa]]></category>
		<category><![CDATA[maven]]></category>
		<category><![CDATA[spring]]></category>
		<category><![CDATA[wicket]]></category>

		<guid isPermaLink="false">http://www.ryannorris.com/?p=60</guid>
		<description><![CDATA[So for various reasons, I&#8217;ve pulled Eclipse Ganymede down and decided to check in on where Java has gone during my year-long mental hiatus in Redmond.  I have certain biases now from the land of .Net, and god help the Java world if it angers me after seeing the things I&#8217;ve seen in the last [...]]]></description>
			<content:encoded><![CDATA[<p>So for various reasons, I&#8217;ve pulled Eclipse Ganymede down and decided to check in on where Java has gone during my year-long mental hiatus in Redmond.  I have certain biases now from the land of .Net, and god help the Java world if it angers me after seeing the things I&#8217;ve seen in the last year.</p>
<p>All in all, I&#8217;m very pleased.</p>
<p><strong>The m2eclipse plugin is marvelous, finally.</strong></p>
<p>The day has finally come where I&#8217;m no longer fighting <a title="Eclipse" href="http://www.eclipse.org" target="_blank">Eclipse</a> to build projects using <a title="Maven" href="http://maven.apache.org" target="_blank">Maven</a>, as it should be.  Maven ties far too many niceties of the world together, and to not have it as the underlying, portable build tool within the IDE has always frustrated me.  The ability to quickly start a new Maven project, apply an archetype and go is fantastic.  The fact that it doesn&#8217;t require special jazz to get a WTP project up and running is even better.</p>
<p><strong>Hey look, working with my database and some JPA implementation is really easy!</strong></p>
<p>&#8230;well, almost easy.  I created a project for my middleware just using the quickstart archetype.  I was just going to throw Spring on top of it and avoid spoiling the good experience so far with EJB insanity.  The next thing I wanted to do was load up my database tables as ORM classes via Hibernate.</p>
<p>For whatever reason, this was cool on my Mac.  Project Properties&#8230;JPA Tools&#8230;Generate entities.  This is somehow not the way to do it over in windows.  So instead I tried to add JPA as a project facet.</p>
<p>My first problem was that I didn&#8217;t have Hibernate set up as my default JPA provider.  Unfortunately, you can only do this through the Maven-managed dependencies.  It has to be an Eclipse user library.  So I download the Entity Manager and wire it up into Eclipse.  Add the Java Facet (somehow <strong>not a default</strong>, probably Maven&#8217;s fault), added the JPA Facet (and am told I need to add the Utility Facet, so I do that).</p>
<p><em>Further configuration required.</em></p>
<p>Ok.  So I click into this further configuration and it reasonably wants to know how I connect to the database.  Fair enough.  I do all this, and it still won&#8217;t let me apply the change.</p>
<p>Eventually, it appears you need to add the Java project facet <em>first</em>, and then and only then can I reopen the properties page and apply the JPA facet.  A frustration point, but I figured it out.</p>
<p><strong>Hey, nothing special to get a project with the Wicket archetype running in WTP.</strong></p>
<p>I start a separate web project and use the <a title="Wicket" href="http://wicket.apache.org" target="_blank">Wicket </a>archetype, interested in tackling what looks to be a nice, lightweight UI package for Java (though it looks like <a title="Spring Framework" href="http://www.springframework.org" target="_blank">Spring </a>integration isn&#8217;t trivial &#8211; which is basically unacceptable these days).  I start the project, I add a server configuration, and deploy&#8230;</p>
<p><em>Holy crap, it works out of the box!</em></p>
<p>I have a ways to go, but things feel more turnkey with Eclipse than I&#8217;ve ever experienced.  I did up some JUnits with Mockito, and that was easy, indicating that if I were to set up Cruise or some other CI tool, I could quickly get going with a full Agile project.  Exciting stuff.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ryannorris.com/2009/04/08/diving-back-into-java-and-liking-it-mostly/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
