<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.0.2" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Switching from Hibernate mapping files to JPA</title>
	<link>http://tech.puredanger.com/2008/07/15/switching-from-hibernate-mapping-files-to-jpa/</link>
	<description>Alex Miller's technical blog</description>
	<pubDate>Thu, 08 Jan 2009 22:17:48 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.2</generator>

	<item>
		<title>by: Manvinder Singh</title>
		<link>http://tech.puredanger.com/2008/07/15/switching-from-hibernate-mapping-files-to-jpa/#comment-131942</link>
		<pubDate>Wed, 07 Jan 2009 19:27:30 +0000</pubDate>
		<guid>http://tech.puredanger.com/2008/07/15/switching-from-hibernate-mapping-files-to-jpa/#comment-131942</guid>
					<description>Thanks Alex! That did puzzle me for long before I hit your solution.</description>
		<content:encoded><![CDATA[<p>Thanks Alex! That did puzzle me for long before I hit your solution.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Bruno</title>
		<link>http://tech.puredanger.com/2008/07/15/switching-from-hibernate-mapping-files-to-jpa/#comment-86252</link>
		<pubDate>Tue, 16 Sep 2008 08:58:19 +0000</pubDate>
		<guid>http://tech.puredanger.com/2008/07/15/switching-from-hibernate-mapping-files-to-jpa/#comment-86252</guid>
					<description>This was really helpful! I spent about 2 hours looking at my config files looking for something and took HibernateUtil for granted, what a huge mistake! Thanks a lot Alex :)</description>
		<content:encoded><![CDATA[<p>This was really helpful! I spent about 2 hours looking at my config files looking for something and took HibernateUtil for granted, what a huge mistake! Thanks a lot Alex :)
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Leendert Paul Diterwich</title>
		<link>http://tech.puredanger.com/2008/07/15/switching-from-hibernate-mapping-files-to-jpa/#comment-85569</link>
		<pubDate>Sun, 14 Sep 2008 00:08:38 +0000</pubDate>
		<guid>http://tech.puredanger.com/2008/07/15/switching-from-hibernate-mapping-files-to-jpa/#comment-85569</guid>
					<description>Hope that helps someone down the line… 

Check :) thx..</description>
		<content:encoded><![CDATA[<p>Hope that helps someone down the line… </p>
<p>Check :) thx..
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Michael Galpin</title>
		<link>http://tech.puredanger.com/2008/07/15/switching-from-hibernate-mapping-files-to-jpa/#comment-66388</link>
		<pubDate>Sun, 20 Jul 2008 14:31:36 +0000</pubDate>
		<guid>http://tech.puredanger.com/2008/07/15/switching-from-hibernate-mapping-files-to-jpa/#comment-66388</guid>
					<description>I can't believe that it's been 2 years since I first used Hibernate Annotations. This blog was like a flashback for me, as I experienced a similar error. You would think a simple abstraction on top of the Configuration class (maybe just a factory for it?) would be enough to deal with this, as reading the hibernate.cfg.xml (i.e. the presence of a mapping element with a class attribute) file should be sufficient to imply which subtype of Configuration to use.</description>
		<content:encoded><![CDATA[<p>I can&#8217;t believe that it&#8217;s been 2 years since I first used Hibernate Annotations. This blog was like a flashback for me, as I experienced a similar error. You would think a simple abstraction on top of the Configuration class (maybe just a factory for it?) would be enough to deal with this, as reading the hibernate.cfg.xml (i.e. the presence of a mapping element with a class attribute) file should be sufficient to imply which subtype of Configuration to use.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Alex</title>
		<link>http://tech.puredanger.com/2008/07/15/switching-from-hibernate-mapping-files-to-jpa/#comment-65387</link>
		<pubDate>Wed, 16 Jul 2008 20:04:54 +0000</pubDate>
		<guid>http://tech.puredanger.com/2008/07/15/switching-from-hibernate-mapping-files-to-jpa/#comment-65387</guid>
					<description>Well, there are lots of applications where you don't need that level of flexibility because you have more control over the app.  Using annotations is:

1) simpler
2) better typed (fewer class names in external files)
3) loses none of the flexibility since you can override the annotations in xml if needed

That said, I don't think either choice is right or wrong - different people will find or the other better in this scenario.</description>
		<content:encoded><![CDATA[<p>Well, there are lots of applications where you don&#8217;t need that level of flexibility because you have more control over the app.  Using annotations is:</p>
<p>1) simpler<br />
2) better typed (fewer class names in external files)<br />
3) loses none of the flexibility since you can override the annotations in xml if needed</p>
<p>That said, I don&#8217;t think either choice is right or wrong - different people will find or the other better in this scenario.
</p>
]]></content:encoded>
				</item>
</channel>
</rss>
