<?xml version="1.0" encoding='utf-8'?>
<!-- 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
-->
<?xml-stylesheet type="text/xsl" href="https://rollerweblogger.org/roller-ui/styles/atom.xsl" media="screen"?><feed xmlns="http://www.w3.org/2005/Atom">
    <title type="html">Blogging Roller</title>
    <subtitle type="html">Dave Johnson on open web technologies, social software and software development</subtitle>
    <id>https://rollerweblogger.org/roller/feed/entries/atom</id>
        <link rel="self" type="application/atom+xml" href="https://rollerweblogger.org/roller/feed/entries/atom?tags=openjpa" />
    <link rel="alternate" type="text/html" href="https://rollerweblogger.org/roller/" />
    <updated>2026-03-23T14:54:34+00:00</updated>
    <generator uri="http://roller.apache.org" version="6.1.5">Apache Roller</generator>
    <entry>
        <id>https://rollerweblogger.org/roller/entry/jpa_jpa_jpa</id>
        <title type="html">JPA JPA JPA</title>
        <author><name>Dave Johnson</name></author>
        <link rel="alternate" type="text/html" href="https://rollerweblogger.org/roller/entry/jpa_jpa_jpa"/>
        <published>2007-03-08T14:33:59+00:00</published>
        <updated>2007-03-09T01:29:22+00:00</updated> 
        <category term="Java" label="Java" />
        <category term="hibernate" scheme="http://roller.apache.org/ns/tags/" />
        <category term="java" scheme="http://roller.apache.org/ns/tags/" />
        <category term="openjpa" scheme="http://roller.apache.org/ns/tags/" />
        <category term="orm" scheme="http://roller.apache.org/ns/tags/" />
        <category term="toplink" scheme="http://roller.apache.org/ns/tags/" />
        <content type="html">&lt;p&gt;That&amp;#39;s three JPAs. I&amp;#39;ve been fighting to get a new Roller back-end running, one that uses the &lt;a href=&quot;http://java.sun.com/javaee/overview/faq/persistence.jsp&quot;&gt;Java Persistence API&lt;/a&gt; (JPA) rather than the native Hibernate API that we use now. &lt;/p&gt;&lt;p&gt;Craig Russell and Mitesh Meswani wrote the new JPA back-end and tested it against &lt;a href=&quot;https://glassfish.dev.java.net/javaee5/persistence/&quot;&gt;Toplink/JPA&lt;/a&gt; (JPA #&lt;b&gt;1&lt;/b&gt;) and the Derby database. I&amp;#39;ve been refactoring it, updating it for Roller 4.0 and testing it against various other databases and JPA implementations with mixed results.&lt;/p&gt;&lt;p&gt;I tried to run it against MySQL, ran into a bunch of problems and fixed those. &lt;a href=&quot;http://www.mans-end.com/&quot;&gt;Allen&lt;/a&gt; switched out Toplink/JPA for &lt;a href=&quot;http://entitymanager.hibernate.org/&quot;&gt;Hibernate/JPA&lt;/a&gt; (JPA #&lt;b&gt;2&lt;/b&gt;), ran into problems and fixed those. I switched out Toplink for &lt;a href=&quot;http://incubator.apache.org/openjpa/&quot;&gt;Apache OpenJPA&lt;/a&gt;-incubating (JPA #&lt;b&gt;3&lt;/b&gt;), ran into problems and fixed those. So now we have a back-end implementation that runs against OpenJPA, but requires two small code changes to work against Toplink -- not exactly an ideal situation.&lt;br&gt; &lt;/p&gt;&lt;p&gt;I&amp;#39;m a JPA newbie for sure and still trying to figure this stuff out, but it does seem that switching JPA implementations is not as easy as it ought to be.&lt;/p&gt;&lt;p&gt;In other JPA news... &lt;/p&gt;&lt;p&gt;I didn&amp;#39;t realize that the open source version of Toplink that Oracle contributed to Glassfish, &lt;a href=&quot;https://glassfish.dev.java.net/javaee5/persistence/&quot;&gt;Toplink Essentials&lt;/a&gt;, is the pee-wee version of the full and still closed source Toplink product. That&amp;#39;s why I was somewhat surprised to hear that &lt;a href=&quot;http://www.infoworld.com/article/07/03/06/HNoracleeclipse_1.html?source=rss&amp;amp;url=http://www.infoworld.com/article/07/03/06/HNoracleeclipse_1.html&quot;&gt;Oracle is open sourcing and donating the full version of Toplink to the Eclipse foundation&lt;/a&gt;. &lt;/p&gt;&lt;p&gt;Two observations about that news. First, this move appears to be a fork that will result in a &lt;a href=&quot;http://opensource.org/licenses/cddl1.php&quot;&gt;CDDL&lt;/a&gt; licensed version of Toplink Essentials in Glassfish and an &lt;a href=&quot;http://opensource.org/licenses/eclipse-1.0.php&quot;&gt;EPL&lt;/a&gt; version in Eclipse -- I hope I&amp;#39;m wrong about that. And second: apparently IBM will be soon be supporting two versions of JPA: OpenJPA via Geronimo and Toplink/JPA via Eclipse. &lt;br&gt; &lt;/p&gt;</content>
    </entry>
</feed>

