You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@roller.apache.org by Elias Torres <el...@torrez.us> on 2007/02/27 00:51:31 UTC

Re: svn commit: r512078 - /incubator/roller/branches/roller_4.0/components/core/src/java/org/apache/roller/business/jpa/JPAPersistenceStrategy.java

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?

-Elias

agilliland@apache.org 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;
>      }
> 
> 
> 

Re: svn commit: r512078 - /incubator/roller/branches/roller_4.0/components/core/src/java/org/apache/roller/business/jpa/JPAPersistenceStrategy.java

Posted by Matt Raible <ma...@raibledesigns.com>.
On 2/26/07, Dave <sn...@gmail.com> wrote:
> On 2/26/07, Elias Torres <el...@torrez.us> wrote:
> > What about Cayenne?
>
> You offering to check it out?
>
> Not sure about Cayenne's JPA support, but we definitely need to steal
> their web site design.
> http://cwiki.apache.org/CAYDOC/jpa-introduction.html

This a feature of using Confluence's AutoExport plugin.  There's a lot
of really nice sites being developed these days:

http://raibledesigns.com/rd/entry/slick_looking_confluence_sites

http://incubator.apache.org/wicket
http://cayenne.apache.org/
http://activemq.org/
http://servicemix.org/

Matt
>
> - Dave
>


-- 
http://raibledesigns.com

Re: svn commit: r512078 - /incubator/roller/branches/roller_4.0/components/core/src/java/org/apache/roller/business/jpa/JPAPersistenceStrategy.java

Posted by Dave <sn...@gmail.com>.
On 2/26/07, Elias Torres <el...@torrez.us> wrote:
> What about Cayenne?

You offering to check it out?

Not sure about Cayenne's JPA support, but we definitely need to steal
their web site design.
http://cwiki.apache.org/CAYDOC/jpa-introduction.html

- Dave

Re: svn commit: r512078 - /incubator/roller/branches/roller_4.0/components/core/src/java/org/apache/roller/business/jpa/JPAPersistenceStrategy.java

Posted by Elias Torres <el...@torrez.us>.
What about Cayenne?

-Elias

Dave wrote:
> On 2/26/07, Allen Gilliland <al...@sun.com> 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?
> 
> Toplink Essentials is CDDL, so we could ship it.
> 
> I'm working on getting Apache OpenJPA working too, so hopefully it
> will also be an option.
> 
> - Dave
> 

Re: svn commit: r512078 - /incubator/roller/branches/roller_4.0/components/core/src/java/org/apache/roller/business/jpa/JPAPersistenceStrategy.java

Posted by Dave <sn...@gmail.com>.
On 2/26/07, Allen Gilliland <al...@sun.com> 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?

Toplink Essentials is CDDL, so we could ship it.

I'm working on getting Apache OpenJPA working too, so hopefully it
will also be an option.

- Dave

Re: svn commit: r512078 - /incubator/roller/branches/roller_4.0/components/core/src/java/org/apache/roller/business/jpa/JPAPersistenceStrategy.java

Posted by Allen Gilliland <al...@sun.com>.

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
>>>
>>> agilliland@apache.org 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;
>>>>      }
>>>>
>>>>
>>>>

Re: svn commit: r512078 - /incubator/roller/branches/roller_4.0/components/core/src/java/org/apache/roller/business/jpa/JPAPersistenceStrategy.java

Posted by Elias Torres <el...@torrez.us>.

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?

-Elias

> 
> -- Allen
> 
> 
>>
>> -Elias
>>
>> agilliland@apache.org 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;
>>>      }
>>>
>>>
>>>
> 

Re: svn commit: r512078 - /incubator/roller/branches/roller_4.0/components/core/src/java/org/apache/roller/business/jpa/JPAPersistenceStrategy.java

Posted by Allen Gilliland <al...@sun.com>.

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.

-- Allen


> 
> -Elias
> 
> agilliland@apache.org 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;
>>      }
>>
>>
>>