Re: OPENJPA-182: reuse Connection constants or create our own?

2007-04-17 Thread Ritika Maheshwari
@incubator.apache.org Subject: Re: OPENJPA-182: reuse Connection constants or create our own? It should be ok anyway in the same VM. Unfortunately I had conflicting messages on weather it's the name or the ordinal that is guaranteed to work across the VMs :(. -marina Patrick Linskey wrote: Fascinating

RE: OPENJPA-182: reuse Connection constants or create our own?

2007-04-17 Thread Patrick Linskey
- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 10, 2007 4:56 PM To: open-jpa-dev@incubator.apache.org Subject: Re: OPENJPA-182: reuse Connection constants or create our own? It should be ok anyway in the same VM. Unfortunately I had conflicting

Re: OPENJPA-182: reuse Connection constants or create our own?

2007-04-10 Thread Marina Vatkina
One note of caution about using enums - there can be a problem in passing enums from a client to a server using RMI-IIOP serialiazation - see GlassFish issue https://glassfish.dev.java.net/issues/show_bug.cgi?id=193 for some details. regards, -marina Abe White wrote: I think that

RE: OPENJPA-182: reuse Connection constants or create our own?

2007-04-10 Thread Patrick Linskey
: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 10, 2007 4:39 PM To: open-jpa-dev@incubator.apache.org Subject: Re: OPENJPA-182: reuse Connection constants or create our own? One note of caution about using enums - there can be a problem in passing enums from a client

Re: OPENJPA-182: reuse Connection constants or create our own?

2007-04-10 Thread Marina Vatkina
It should be ok anyway in the same VM. Unfortunately I had conflicting messages on weather it's the name or the ordinal that is guaranteed to work across the VMs :(. -marina Patrick Linskey wrote: Fascinating. Happily, as it turns out, we never compare these things directly; instead, we

RE: OPENJPA-182: reuse Connection constants or create our own?

2007-04-10 Thread Patrick Linskey
- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 10, 2007 4:56 PM To: open-jpa-dev@incubator.apache.org Subject: Re: OPENJPA-182: reuse Connection constants or create our own? It should be ok anyway in the same VM. Unfortunately I had conflicting messages

RE: OPENJPA-182: reuse Connection constants or create our own?

2007-04-06 Thread Patrick Linskey
FYI, one problem with using an enum is that the rest of FetchPlan uses symbolic constants, not enums. But, I think that we should deprecate those methods and add in enum-based methods there when applicable at some point here, anyways. -Patrick -- Patrick Linskey BEA Systems, Inc.

Re: OPENJPA-182: reuse Connection constants or create our own?

2007-04-06 Thread Abe White
I think that JDBCFetchPlan should take a Java 5 enum, and JDBCFetchConfiguration should use the Connection values. Certainly JDBCFetchConfiguration should use the Connection values. I personally have never had a problem with symbolic constants for settings, but enums for the FetchPlan are