RE: OpenJPA top of OSGI platform

2009-04-16 Thread David Leangen
Hi, Charles, Yes, there is a pax-openjpa project. Looks like it's still in the lab, but it works and I use it. https://scm.ops4j.org/repos/ops4j/laboratory/users/efy/jpa/ Cheers, =David > -Original Message- > From: Charles Moulliard [mailto:cmoulli...@gmail.com] > Sent: 16 April 2

Re: Optimistic locking errors were detected when flushing to the data store

2009-04-16 Thread Fay Wang
Can you turn on the trace : and attach the trace file for further investigation? -Fay --- On Thu, 4/16/09, Georgi Naplatanov wrote: > From: Georgi Naplatanov > Subject: Optimistic locking errors were detected when flushing to the data > store > To: users@openjpa.apache.org > Date: Thursda

Re: Looking for advice on JPA based DAO

2009-04-16 Thread Daniel Toffetti
Thanks very much for your explanation. We are not too much concerned with scalability as we do intranet apps, but they in fact deal mostly with set operations as you say. As you put it, it seems that I should stick with DAO (either JPA based or not), and/or perhaps any other layer that

Optimistic locking errors were detected when flushing to the data store

2009-04-16 Thread Georgi Naplatanov
Hello list. I upgraded OpenJPA from 1.2.0 to 1.2.1 and have the following exception. My environment is MySql 5.0.51 (MyISAM storage manager) and JRE Sun 1.6.0_13-b03. The application works without this exception with OpenJPA 1.2.0. Optimistic locking errors were detected when flushing to the data

Re: Eclipse Plugin for openJPA -> Enhancement incorrect

2009-04-16 Thread Kevin Sutter
Hi, I'll let Pinaki post on the eclipse plugin questions, but I'll take a shot at the alternate JPA provider question... On Thu, Apr 16, 2009 at 9:38 AM, wrote: > > PS: Does anybody know a good Howto on setting up openJPA 1.2 or the > nightly build of 2.0 on a Websphere 6.1 + EJB3 FP? It's reall

Re: Re: StrictIdentityValues Issues leading to !(x instanceof Long)

2009-04-16 Thread it-media . kopp
Hello again, I exactly tried this now. But this time, the Error gets even weirder, cause now I get: java.lang.Integer is incompatible with java.lang.Long, were honestly NO single Integer is present in both classes. What is JPA trying to do here? Heiko curti...@gmail.com 15.04.2009 17:55

Re: OpenJPA top of OSGI platform

2009-04-16 Thread Kevin Sutter
Hi Charles, The answer is mixed. We currently don't package OpenJPA as a bundle in the pure Apache environment, but OpenJPA is packaged as an OSGi bundle when used as part of the WebSphere JPA solution. So, it is doable... ;-) I also found this article on Developer Works [1]. Granted, this is

Eclipse Plugin for openJPA -> Enhancement incorrect

2009-04-16 Thread it-media . kopp
Hello, I'm currently trying to use the Eclipse Plugin provided at http://people.apache.org/~ppoddar/eclipse. Unfortunately, this uses the new 2.0 SNAPSHOT with seems to have some issues in enhancing the persistent classes. Only primitive types are enhanced at all. All @OneToOne or @OneToMany Re

Re: Looking for advice on JPA based DAO

2009-04-16 Thread Daryl Stultz
On Thu, Apr 16, 2009 at 8:27 AM, Daniel Toffetti wrote: >I just DON'T WANT to invoke a callable statement or named query in my > business code, that's why I need a DAO layer. This is what I want to do in > my business layer: > >Collection reportItems = > SalesReportLineDAO.query('2009-04-1

Re: Looking for advice on JPA based DAO

2009-04-16 Thread Pinaki Poddar
Hi, > whatever is more complex than simple POJO CRUD, I do it with proper SQL in > stored procedures. I like > JPA a bit more than other ORM, but I still see it lacking in this regard. JPA is more akin to Model-View-Controller (MVC) programming model where Model = database record/schema V

Re: Looking for advice on JPA based DAO

2009-04-16 Thread Daniel Toffetti
Thanks for sharing this. In my case, I believe I still need DAO, see (quoted from [1]: "...The usage cannot be simpler. The EntityManager will be just injected to the bean-class...The DAO pattern is actually no more interesting for general data access, but is still needed to access data from

Re: Looking for advice on JPA based DAO

2009-04-16 Thread Daryl Stultz
On Thu, Apr 16, 2009 at 12:51 AM, Pinaki Poddar wrote: > > Hi, > Or may be with JPA, DAO is no more a useful pattern? I've never used the DAO pattern. My homegrown web application framework I would say is a little "too close to the metal". In trying to learn JPA, I see this pattern of MyEntity

OpenJPA top of OSGI platform

2009-04-16 Thread Charles Moulliard
Hi, I would like to know if some users have already deployed and used OpenJPA top of an OSGI server like ServiceMix Kernel (based on Apache Felix, Spring OSGI and PAX) ? Is OpenJPA already available as OSGI bundles (I mean MANIFEST file of the jars have been modified to import or export-package)