state-of-the art attribute initialization in persistent pojos?

2007-04-12 Thread Hans J. Prueller
hi, as you know I am switching from EJB2.1 CMP to JPA (OpenJPA). I'd like to know the preferred way to perform attribute initialisation of newly created entity instances, e.g. we initialized our EJB2.1 CMP entity beans with ejbCreate(String cid, Integer someOtherValue) { setabc();

Re: state-of-the art attribute initialization in persistent pojos?

2007-04-12 Thread Hans J. Prueller
Am Donnerstag, den 12.04.2007, 08:57 -0700 schrieb Craig L Russell: > The no-arg constructor can be private. fine - is this an OpenJPA specific feature or part of the JPA spec? You have to know: in our current EJB2.1 CMP EB implementation, we - unconsciously - used a lot of not-spec-compliant s

Re: [VOTE] publish openjpa 0.9.7-incubating release

2007-04-16 Thread Hans J. Prueller
+1 Am Montag, den 16.04.2007, 11:10 -0500 schrieb Michael Dick: > OpenJPA People- > > In accordance with the Incubating Releases guidelines at > http://incubator.apache.org/incubation/Incubation_Policy.html#Releases > , I've taken another shot at making a release and start a vote on publishing

Re: Duplicate query

2007-04-16 Thread Hans J. Prueller
Phill, I am still getting the same warning - although I am using a 0.9.7-snapshot that is some weeks old meanwhile: 160 lbsims INFO [RMI TCP Connection(3)-127.0.1.1] openjpa.Runtime - Starting OpenJPA 0.9.7-incubating-SNAPSHOT 363 lbsims INFO [RMI TCP Connection(3)-127.0.1.1] openjpa.jdbc

Re: Duplicate query

2007-04-19 Thread Hans J. Prueller
Jacek, thank you for diving into this. I added the following node to my persistence.xml right after the - List: true It seems that the "duplicate query" warning stays - did I add it the wrong way? hans Am Mittwoch, den 18.04.2007, 00:16 +0200 schrieb Jacek Laskowski: > On 4/

Re: Duplicate query

2007-04-19 Thread Hans J. Prueller
Am Donnerstag, den 19.04.2007, 12:14 -0500 schrieb Jay D. McHugh: > You could try that and see if it makes a difference (hopefully it > will) Unfortunately NOT. Can anybody else with that duplicate-query problem try it? Hans signature.asc Description: Dies ist ein digital signierter Nachrich

Re: Duplicate query

2007-04-19 Thread Hans J. Prueller
Jacek, don't bother that you messed something up. At least from the XML-Schema definition I was able to derive the right things I think: Am Donnerstag, den 19.04.2007, 20:36 +0200 schrieb Jacek Laskowski: > Not applicable to Java SE > persistence units. So in that case this won't change anyth

Re: Duplicate query

2007-04-19 Thread Hans J. Prueller
Am Donnerstag, den 19.04.2007, 21:34 +0200 schrieb Jacek Laskowski: > Did you configure it by purpose? These are settings I have never used > so I doubt if I help much. Definitely. I have to mix EJB2.1 CMP entity beans with the new JPA POJO CMP3 Entity Beans within the J2EE1.4 application serv

Re: [VOTE] Graduate from Incubation

2007-05-03 Thread Hans J. Prueller
+1 hans Am Donnerstag, den 03.05.2007, 07:22 -0700 schrieb Craig L Russell: > This vote is to send the attached draft board resolution to the > incubator for the purpose of graduation from the incubator to the > Apache OpenJPA project. > > +1 We're ready; let's graduate > > 0 Don't care

Using OpenJPA within an "old" J2EE1.4 container with managed transactions?

2007-02-05 Thread Hans J. Prueller
Hi there, I'm trying to migrate our "old" J2EE1.4 / EJB2.1 applications persistence to openJPA. Currently I got stuck when trying to configure OpenJPA persistence, when creating the EntityManagerFactory and the EntityManager instance, I get the following error: <4|true|0.9.6-incubating>

AW: Using OpenJPA within an "old" J2EE1.4 container with managed transactions?

2007-02-05 Thread Hans J. Prueller
va:comp/ > UserTransaction) > > if that doesn't work, try: > > openjpa.ManagedRuntime: jndi(TransactionManagerName=/ > UserTransaction) > > (apparently, Jonas' UserTransaction implementation is also their > TransactionManager implementation) > > If that doe

AW: Using OpenJPA within an "old" J2EE1.4 container with managed transactions?

2007-02-06 Thread Hans J. Prueller
tems, Inc., its subsidiaries and affiliated > entities, that may be confidential, proprietary, copyrighted and/or > legally privileged, and is intended solely for the use of the individual > or entity named in this message. If you are not the intended recipient, > and have rece

Using @GeneratedValue for IDs on already existing tables

2007-02-10 Thread Hans J. Prueller
As some of you may remember, I am using OpenJPA within an "old" Java2EE 1.4/EJB2.1 container to perform a step-by-step or bean-by-bean migration from our EJB2.1 CMP entity beans to new EJB3 Beans with JPA. For the IDs of the Entity Beans we have been using a Container-Generated-Value and I pla

WG: Using @GeneratedValue for IDs on already existing tables

2007-02-12 Thread Hans J. Prueller
-Ursprüngliche Nachricht- Von: Hans J. Prueller [mailto:[EMAIL PROTECTED] Gesendet: Samstag, 10. Februar 2007 18:24 An: open-jpa-dev@incubator.apache.org Betreff: Using @GeneratedValue for IDs on already existing tables As some of you may remember, I am using OpenJPA within an &quo

AW: Using @GeneratedValue for IDs on already existing tables

2007-02-13 Thread Hans J. Prueller
and/or > legally privileged, and is intended solely for the use of the individual > or entity named in this message. If you are not the intended recipient, > and have received this message in error, please immediately return this > by email and then delete it. > > > -Original Messa

AW: AW: Using @GeneratedValue for IDs on already existing tables

2007-02-13 Thread Hans J. Prueller
thanks for this link but this section only describes the different algorithms that are provided to get the generated value - it does not mention the case what happens if we try to save a new persistent entity with a generated PK value that already exists in the DB? I can remember a legacy persiste

AW: AW: Using @GeneratedValue for IDs on already existing tables

2007-02-13 Thread Hans J. Prueller
aries and affiliated > entities, that may be confidential, proprietary, copyrighted and/or > legally privileged, and is intended solely for the use of the individual > or entity named in this message. If you are not the intended recipient, > and have received this message in error

AW: AW: AW: Using @GeneratedValue for IDs on already existing tables

2007-02-13 Thread Hans J. Prueller
to use a > OpenJPA UUID without conflicts. If the vendor is using some sort of > DB sequence, you should be able to start a new sequence for OpenJPA > using a much larger starting number. > > -dain > > On Feb 13, 2007, at 9:00 AM, Hans J. Prueller wrote: > > > thanks

AW: AW: AW: AW: Using @GeneratedValue for IDs on already existing tables

2007-02-13 Thread Hans J. Prueller
or IDs on already existing > tables > > > On Feb 13, 2007, at 10:06 AM, Hans J. Prueller wrote: > > >> Can you tell us your current J2EE vendor, and if possible the > >> generation > >> strategy selected in the vendor deployment descriptor. If not, >

howto/pattern for working with three databases outside an EJB3 container

2007-02-16 Thread Hans J. Prueller
Hi there, meanwhile I succeeded in getting OpenJPA to work within my J2EE 1.4 container and I was able to replace a CMP entity bean by a JPA Pojo and perform basic operations on it (insert/persist, query). The hi-lo table sequence generator works fine, so I can avoid conflicts with exis

configurable db-schema-owner problem!

2007-02-19 Thread Hans J. Prueller
hi together, I am evaluating JPA(OpenJPA) for one of our customers. The usage scenarios have a very special problem of which I do not know if there is a clear solution by using JPA: The customers Oracle databases have very restricted access privileges: ==> the testing and developme

AW: Howto integrate JPA within EJB2.1 session beans? [architecture]

2007-02-21 Thread Hans J. Prueller
Kevin, if you missed previous discussions on the list: I am using OpenJPA within a Java2EE 1.4 container - therefore I cannot use container injection unfortunately! hans > -Ursprüngliche Nachricht- > Von: Kevin Sutter [mailto:[EMAIL PROTECTED] > Gesendet: Mittwoch, 21. Februar 2007 12:58

RE: TYPO? Howto integrate JPA within EJB2.1 session beans? [architecture]

2007-02-23 Thread Hans J. Prueller
Patrick, I'm currently trying your tip with a PersistenceService util class doing the lookup of a synchronized entity manager. The problem is that your sample code does not work! in fact the statement final BrokerFactory bf = OpenJPAPersistence.cast(emf); is the problem. the above "cast" does

AW: TYPO? Howto integrate JPA within EJB2.1 session beans? [architecture]

2007-02-23 Thread Hans J. Prueller
, copyrighted and/or > legally privileged, and is intended solely for the use of the individual > or entity named in this message. If you are not the intended recipient, > and have received this message in error, please immediately return this > by email and then delete it. >

EMF JNDI lookup is starting openJPA every time - was: Howto integrate JPA within EJB2.1 session beans?

2007-02-24 Thread Hans J. Prueller
that may be confidential, proprietary, copyrighted and/or > legally privileged, and is intended solely for the use of the individual > or entity named in this message. If you are not the intended recipient, > and have received this message in error, please immediately return this > by

AW: EMF JNDI lookup is starting openJPA every time - was: Howto integrate JPA within EJB2.1 session beans?

2007-02-27 Thread Hans J. Prueller
> Notice: This email message, together with any attachments, may contain > information of BEA Systems, Inc., its subsidiaries and affiliated > entities, that may be confidential, proprietary, copyrighted and/or > legally

AW: EMF JNDI lookup is starting openJPA every time - was: Howto integrate JPA within EJB2.1 session beans?

2007-02-27 Thread Hans J. Prueller
ial, proprietary, copyrighted and/or > legally privileged, and is intended solely for the use of the individual > or entity named in this message. If you are not the intended recipient, > and have received this message in error, please immediately return this > by email and then delete

AW: OpenJPA love

2007-03-12 Thread Hans J. Prueller
Any special reason why you have been migrating from Hibernate to OpenJPA (in addition to that it is an Apache project)? regards, hans > -Ursprüngliche Nachricht- > Von: Matthieu Riou [mailto:[EMAIL PROTECTED] > Gesendet: Dienstag, 13. März 2007 03:33 > An: open-jpa-dev@incubator.apache.or

openjpa performance copmared to toplink essentials

2007-03-14 Thread Hans J. Prueller
Hi together, please allow me a simple question: I am currently preparing a "JPA" workshop for a customer to show the developers the new way of working with JPA persistence in Java EE 5. Just to show one of the advantages of an open standard like JPA I prepared the example to switch between Op

[no subject]

2007-03-23 Thread Hans J. Prueller
I received a very strange error message from OpenJPA on a method that is being called very often subsequently. The most time it works, suddenly it failed with: Could not locate metadata for the class using alias "PositionLog". Registered alias mappings: "{PositionLog=[class com.lbslogics.ims.mode

Forgot subject: Strange Could not locate metadata for the class Error?

2007-03-23 Thread Hans J. Prueller
Weitergeleitete Nachricht > Von: Hans J. Prueller <[EMAIL PROTECTED]> > Antwort an: open-jpa-dev@incubator.apache.org > An: open-jpa-dev@incubator.apache.org > Betreff: No Subject > Datum: Fri, 23 Mar 2007 13:12:26 +0100 > > > I received a v

RE: Forgot subject: Strange Could not locate metadata for the classError?

2007-03-23 Thread Hans J. Prueller
full stack trace (up until application specific stuff) is: 2007-03-22 21:34:53,287 : SEVERE : WorkThread-2/34 : Logger.log : system exception in business method: <4|true|0.9.7-incubating-SNAPSHOT> org.apache.openjpa.persistence.ArgumentException: Could not locate metadata for the class using alias

AW: Forgot subject: Strange Could not locate metadata for the classError?

2007-03-23 Thread Hans J. Prueller
as not yet been called for > that EntityManager's EntityManagerFactory. > > If this is something you can reproduce, it would be interesting if we > could see more logging output (enabled by setting the "kodo.Log" > property to "DefaultLevel=TRACE"), especially tho

AW: AW: Forgot subject: Strange Could not locate metadata for the classError?

2007-03-23 Thread Hans J. Prueller
u expect users to always specify this setting when they > >>> decide to deploy it to a multi-threaded container? > >>> > >>> thanks, > >>> -marina > >>> > >>> Marc Prud'hommeaux wrote: > >>> > >>>&

WARNING: Connection not closed by caller - messages produced by OpenJPA?

2007-03-28 Thread Hans J. Prueller
Hi together, I succeeded in integrating OpenJPA into our J2EE1.4 container, running side-by-side within the same JTA transactions as container managed EJB2.1 CMP entity beans. The lookup/creation of the EntityManager instances is synchronizing with the JTA TXs as you suggested some weeks ago on t

Re: WARNING: Connection not closed by caller - messages produced by OpenJPA?

2007-03-28 Thread Hans J. Prueller
nt). any ideas? Hans Am Mittwoch, den 28.03.2007, 20:47 +0200 schrieb Hans J. Prueller: > Hi together, > > I succeeded in integrating OpenJPA into our J2EE1.4 container, running > side-by-side within the same JTA transactions as > container managed EJB2.1 CMP entity beans. &

RE: WARNING: Connection not closed by caller - messages produced byOpenJPA?

2007-03-28 Thread Hans J. Prueller
The usage case of the EM is, that I call a PersistenceService.getEntityManager() method in every method of my SLSB's, the SLSBs all have the "Required" attribute set for TXs, so every time I call the getEM() method, there should be an already running JTA TX. This is the code: logger.log(Level.F

RE: WARNING: Connection not closed by caller - messages producedbyOpenJPA?

2007-03-28 Thread Hans J. Prueller
Am Mittwoch, den 28.03.2007, 12:43 -0700 schrieb Patrick Linskey: > What happens if you set 'openjpa.TransactionMode' to 'managed' as > well? I will give it a try. Can you explicitly confirm that it shouldn't be a multithreading problem where there are serveral entitymanagers created in differen

RE: WARNING: Connection not closed by caller - messagesproducedbyOpenJPA?

2007-03-28 Thread Hans J. Prueller
Am Mittwoch, den 28.03.2007, 13:30 -0700 schrieb Patrick Linskey: > Are you ever sharing EMs across multiple sequential JTA transactions? As far as I can say: definitely NO. But the EMF used to create the EM's is held as a static member of a Helper Class. I.e. 2 different threads accessing the E

RE: WARNING: Connection not closed by caller - messagesproducedbyOpenJPA?

2007-03-28 Thread Hans J. Prueller
>> If you want to access a single EM from multiple >> threads, you should set the openjpa.Multithreaded property accordingly As I mentioned, there is a static EMF in a helper class used to obtain the EM's called from different threads. does above property also resolve multithreaded access to the E

RE: RE: WARNING: Connection not closed by caller - messages produced byOpenJPA?

2007-03-29 Thread Hans J. Prueller
Am Donnerstag, den 29.03.2007, 10:09 -0700 schrieb Patrick Linskey: > If somehow you're holding onto a reference to the EM across multiple > transactions, or the pool is somehow doling out duplicates or > something, > you should now see exceptions thrown indicating that the EM is closed. > Alterna

RE: RE: WARNING: Connection not closed by caller - messages produced byOpenJPA?

2007-03-30 Thread Hans J. Prueller
ore details > > about what the > > > biz method in question is? > > > > > > (None of the messages you've posted look like anything that OpenJPA > > > would ever generate.) > > > > > > -Patrick > > > > > > --