Elias Torres wrote:

Allen Gilliland wrote:

Elias Torres wrote:
I might have missed this discussion, so here it goes:

Is TopLink CDDL?

Is CDDL compatible with Apache? e.g. are we going to ship Roller with it?

If no to either or both of the questions above, which is the favored and
blessed JPA implementation for Roller?
That hasn't been decided yet, all I know is that TopLink is what has
been used for development up until now.  We are still quite a ways away
from shipping anything based on JPA so there is plenty of time to sort
out which implementation we prefer.

Cool beans. Can I try it out? or should I wait a little bit more?

well, you can, but it may not work properly yet :/

most of the development work was done using the unit tests and against the Derby db, but when we tried switching to a different database TopLink started having some not so pretty errors so we are investigating alternatives right now.

Dave is checking out OpenJPA and I am trying out Hibernate's JPA implementation. Of course we wouldn't actually choose Hibernate, it's more for sanity checking.

You can grab the 4.0 branch and poke around all you like, but it'll probably be another day or so before we really get things cleaned up and working properly, so you may want to wait until then. We can send out a heads up when we think we have everything working.

-- Allen



-Elias

-- Allen


-Elias

[EMAIL PROTECTED] wrote:
Author: agilliland
Date: Mon Feb 26 15:37:21 2007
New Revision: 512078

URL: http://svn.apache.org/viewvc?view=rev&rev=512078
Log:
transactions are required for update queries.


Modified:
incubator/roller/branches/roller_4.0/components/core/src/java/org/apache/roller/business/jpa/JPAPersistenceStrategy.java


Modified:
incubator/roller/branches/roller_4.0/components/core/src/java/org/apache/roller/business/jpa/JPAPersistenceStrategy.java

URL:
http://svn.apache.org/viewvc/incubator/roller/branches/roller_4.0/components/core/src/java/org/apache/roller/business/jpa/JPAPersistenceStrategy.java?view=diff&rev=512078&r1=512077&r2=512078

==============================================================================

---
incubator/roller/branches/roller_4.0/components/core/src/java/org/apache/roller/business/jpa/JPAPersistenceStrategy.java
(original)
+++
incubator/roller/branches/roller_4.0/components/core/src/java/org/apache/roller/business/jpa/JPAPersistenceStrategy.java
Mon Feb 26 15:37:21 2007
@@ -265,7 +265,7 @@
      */
     public Query getNamedUpdate(String queryName)
     throws RollerException {
-        EntityManager em = getEntityManager(false);
+        EntityManager em = getEntityManager(true);
         Query q = em.createNamedQuery(queryName);
         return q;
     }



Reply via email to