[jira] Created: (OPENJPA-142) Entity name is ignored when specified in the orm.xml file

2007-02-12 Thread Marc Prud'hommeaux (JIRA)
Entity name is ignored when specified in the orm.xml file - Key: OPENJPA-142 URL: https://issues.apache.org/jira/browse/OPENJPA-142 Project: OpenJPA Issue Type: Bug Components

Re: Do mapped superclasses work at all in OpenJPA?

2007-02-12 Thread Marc Prud'hommeaux
Dain- I just did a quick test with a mapped-superclass using an orm.xml descriptor with all attributes defined in the superclass, and it worked fine for me. Are you using dynamic runtime enhancement, or build-time enhancement? Can you enable TRACE-level logging (by setting the "openjpa.Lo

Re: Do mapped superclasses work at all in OpenJPA?

2007-02-12 Thread Dain Sundstrom
Are you sure that is the right issue? It seems to be about a different problem. -dain On Feb 12, 2007, at 7:14 PM, Craig L Russell wrote: Hi Dain, This might be related to a bug in xml overrides http:// issues.apache.org/jira/browse/OPENJPA-97. Just fer grins, do you have a way to annot

RE: Using @GeneratedValue for IDs on already existing tables

2007-02-12 Thread Patrick Linskey
How do you currently generate your values? If you use some sort of database-side logic (sequence, auto-assigned columns, hi-lo table), it should be trivial for Kodo to interoperate. If you're using some sort of fancy in-process algorithm, it may be more difficult, but is certainly doable. -Patrick

RE: NoSuchFieldException

2007-02-12 Thread Patrick Linskey
> Does anyone know if I can declare a mapped-superclass with > all fields declared as transient and then use attribute-override > in the subclass for fields I want to map? I think that your use case should work, modulo the issue that you're running into in the other thread. -Patrick -- Patric

RE: pessimistic locking

2007-02-12 Thread Patrick Linskey
I think it's legit. In OpenJPA, to make this work in the intended manner, they should set openjpa.Optimistic to false and both openjpa.ReadLockLevel and openjpa.WriteLockLevel to 'none'. -Patrick -- Patrick Linskey BEA Systems, Inc. _

[jira] Commented: (OPENJPA-141) More performance improvements (in response to changes for OPENJPA-138)

2007-02-12 Thread Kevin Sutter (JIRA)
[ https://issues.apache.org/jira/browse/OPENJPA-141?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12472516 ] Kevin Sutter commented on OPENJPA-141: -- > So what might work is having the keys be weak, and the otherwise unre

[jira] Commented: (OPENJPA-141) More performance improvements (in response to changes for OPENJPA-138)

2007-02-12 Thread Craig Russell (JIRA)
[ https://issues.apache.org/jira/browse/OPENJPA-141?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12472510 ] Craig Russell commented on OPENJPA-141: --- >> Craig thinks: Weak references are supposed to be cleaned up if the

[jira] Commented: (OPENJPA-141) More performance improvements (in response to changes for OPENJPA-138)

2007-02-12 Thread Abe White (JIRA)
[ https://issues.apache.org/jira/browse/OPENJPA-141?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12472506 ] Abe White commented on OPENJPA-141: --- > Craig thinks: Weak references are supposed to be cleaned up if the referenc

Re: Do mapped superclasses work at all in OpenJPA?

2007-02-12 Thread Craig L Russell
Hi Dain, This might be related to a bug in xml overrides http:// issues.apache.org/jira/browse/OPENJPA-97. Just fer grins, do you have a way to annotate the mapped superclass? Craig On Feb 12, 2007, at 7:01 PM, Dain Sundstrom wrote: When I try to use a simple mapped super class with a triv

Do mapped superclasses work at all in OpenJPA?

2007-02-12 Thread Dain Sundstrom
When I try to use a simple mapped super class with a trivial sub class (no fields or methods), I get the following exception: ERROR - The bean instances business method encountered a system exception:org.apache.openejb.test.entity.cmp.BasicCmpBean.pcGetManagedFi eldCount()I java.lang.NoSuchM

Re: NoSuchFieldException

2007-02-12 Thread Dain Sundstrom
I think I need to declare a mapped-superclass, and then use attribute- overrides in the subclass. Does anyone know if I can declare a mapped-superclass with all fields declared as transient and then use attribute-override in the subclass for fields I want to map? I would be easier for me to

[jira] Commented: (OPENJPA-141) More performance improvements (in response to changes for OPENJPA-138)

2007-02-12 Thread Craig Russell (JIRA)
[ https://issues.apache.org/jira/browse/OPENJPA-141?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12472478 ] Craig Russell commented on OPENJPA-141: --- Abe opined: 1. Each BrokerFactory has a ManagedRuntime. You can have

NoSuchFieldException

2007-02-12 Thread Dain Sundstrom
I have this scenario in my CMP2JPA tool where I have to generate subclasses of CMP1 beans. When the user has an "unknown" primary key or more commonly, when they use the same ejb class for multiple deployments, I have to generate a sub class to either add an extra field, or to differentiat

[jira] Commented: (OPENJPA-141) More performance improvements (in response to changes for OPENJPA-138)

2007-02-12 Thread Abe White (JIRA)
[ https://issues.apache.org/jira/browse/OPENJPA-141?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12472455 ] Abe White commented on OPENJPA-141: --- 1. Each BrokerFactory has a ManagedRuntime. You can have multiple BrokerFac

Re: Kodo passes JPA tck

2007-02-12 Thread Geir Magnusson Jr.
Yes, the problem is that it's not publicly visible. I need to solve that... On Feb 12, 2007, at 5:37 PM, robert burrell donkin wrote: On 2/12/07, Geir Magnusson Jr. <[EMAIL PROTECTED]> wrote: On Feb 12, 2007, at 4:33 PM, Marc Prud'hommeaux wrote: > Dain- > > I've been working on the TCK c

Re: Kodo passes JPA tck

2007-02-12 Thread robert burrell donkin
On 2/12/07, Geir Magnusson Jr. <[EMAIL PROTECTED]> wrote: On Feb 12, 2007, at 4:33 PM, Marc Prud'hommeaux wrote: > Dain- > > I've been working on the TCK certification for OpenJPA. The terms > of Sun's TCK license dictate that I can't discuss the details with > any people who haven't signed Apa

[jira] Commented: (OPENJPA-141) More performance improvements (in response to changes for OPENJPA-138)

2007-02-12 Thread Kevin Sutter (JIRA)
[ https://issues.apache.org/jira/browse/OPENJPA-141?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12472440 ] Kevin Sutter commented on OPENJPA-141: -- Re: Caching the TransactionManager in a static... Although we could c

Fwd: pessimistic locking

2007-02-12 Thread Craig L Russell
Comments from the experts here? Craig Begin forwarded message: From: Scott Oaks <[EMAIL PROTECTED]> Date: February 12, 2007 11:45:52 AM PST To: [EMAIL PROTECTED] Subject: pessimistic locking Reply-To: [EMAIL PROTECTED] The SPEC organization is in the process of developing a JPA-based benchmar

Re: Kodo passes JPA tck

2007-02-12 Thread Geir Magnusson Jr.
On Feb 12, 2007, at 4:33 PM, Marc Prud'hommeaux wrote: Dain- I've been working on the TCK certification for OpenJPA. The terms of Sun's TCK license dictate that I can't discuss the details with any people who haven't signed Apache's NDA (see http:// www.apache.org/jcp/), but I can say tha

Re: Kodo passes JPA tck

2007-02-12 Thread Marc Prud'hommeaux
Dain- I've been working on the TCK certification for OpenJPA. The terms of Sun's TCK license dictate that I can't discuss the details with any people who haven't signed Apache's NDA (see http://www.apache.org/ jcp/), but I can say that we might be able to make an announcement regarding com

Kodo passes JPA tck

2007-02-12 Thread Dain Sundstrom
I read on the serverside.com that Kodo has passed the JPA tck, and am curious if there are any uncommitted patches from BEA that are required to make OpenJPA compliant. Also, has anyone run OpenJPA through the JPA tck and if so did we pass? -dain

Re: [VOTE] Move JPA API dependency from dev.java.net to geronimo version

2007-02-12 Thread Bryan Noll
+1 ...because of the compliance reasons you outlined. Michael Dick wrote: +1 On 2/10/07, Eddie O'Neil <[EMAIL PROTECTED]> wrote: +1 On 2/9/07, Craig L Russell <[EMAIL PROTECTED]> wrote: > +1 > > My vote is as much related to dissatisfaction with the maven repo > that is used by glassfi

Entity name ignored in queries (0.9.6)?

2007-02-12 Thread Dain Sundstrom
I'm using 0.9.6 and it appears the OpenJPA is ignoring the entity name when processing queries. In stead it seems to always choose the class name for the schema name of the bean. For example, I have the following bean declared in my entity mappings: class="org.apache.openejb.test.enti

Re: [VOTE] Move JPA API dependency from dev.java.net to geronimo version

2007-02-12 Thread Michael Dick
+1 On 2/10/07, Eddie O'Neil <[EMAIL PROTECTED]> wrote: +1 On 2/9/07, Craig L Russell <[EMAIL PROTECTED]> wrote: > +1 > > My vote is as much related to dissatisfaction with the maven repo > that is used by glassfish as with the time it takes to get anything > done through official channel

Re: Strange, intermittent problem running the new models.company tests

2007-02-12 Thread Kevin Sutter
That clarification works for me... ;-) On 2/12/07, Marc Prud'hommeaux <[EMAIL PROTECTED]> wrote: Kevin- It could, but it would just be a spec compliance. OpenJPA does allow you to have final classes. The spec just prohibits it because one of the ways to implement support for property access i

Re: Strange, intermittent problem running the new models.company tests

2007-02-12 Thread Marc Prud'hommeaux
Kevin- It could, but it would just be a spec compliance. OpenJPA does allow you to have final classes. The spec just prohibits it because one of the ways to implement support for property access is to dynamically generate a subclass to the entity (which isn't possible if the entity is fin

[jira] Created: (OPENJPA-141) More performance improvements (in response to changes for OPENJPA-138)

2007-02-12 Thread Kevin Sutter (JIRA)
More performance improvements (in response to changes for OPENJPA-138) -- Key: OPENJPA-141 URL: https://issues.apache.org/jira/browse/OPENJPA-141 Project: OpenJPA Issue Type

Re: svn commit: r506230 - in /incubator/openjpa/trunk: openjpa-kernel/src/main/java/org/apache/openjpa/ee/ openjpa-kernel/src/main/java/org/apache/openjpa/kernel/ openjpa-kernel/src/main/java/org/apac

2007-02-12 Thread Abe White
Thanks for the feedback. I know that we have been running with both the IBM and Sun JDK's, but let me get together with my performance team and discuss your concerns. We will try to provide more concrete data on these updates. Cool. Maybe I'll learn something about weak refs and the

Re: svn commit: r506230 - in /incubator/openjpa/trunk: openjpa-kernel/src/main/java/org/apache/openjpa/ee/ openjpa-kernel/src/main/java/org/apache/openjpa/kernel/ openjpa-kernel/src/main/java/org/apac

2007-02-12 Thread Kevin Sutter
I have created OPENJPA-141 ( https://issues.apache.org/jira/browse/OPENJPA-141) to track these issues. Kevin On 2/12/07, Abe White <[EMAIL PROTECTED]> wrote: > == > > --- incubator/openjpa/trunk/openjpa-kernel/src/ma

Re: svn commit: r506230 - in /incubator/openjpa/trunk: openjpa-kernel/src/main/java/org/apache/openjpa/ee/ openjpa-kernel/src/main/java/org/apache/openjpa/kernel/ openjpa-kernel/src/main/java/org/apac

2007-02-12 Thread Kevin Sutter
Abe, Thanks for the feedback. I know that we have been running with both the IBM and Sun JDK's, but let me get together with my performance team and discuss your concerns. We will try to provide more concrete data on these updates. I understand your concerns, but instead of immediately backing

Re: svn commit: r506230 - in /incubator/openjpa/trunk: openjpa-kernel/src/main/java/org/apache/openjpa/ee/ openjpa-kernel/src/main/java/org/apache/openjpa/kernel/ openjpa-kernel/src/main/java/org/apac

2007-02-12 Thread Abe White
== --- incubator/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/ openjpa/ee/JNDIManagedRuntime.java (original) +++ incubator/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/ openjpa/ee/JNDIManagedRuntime.

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 "old" Jav

Re: Strange, intermittent problem running the new models.company tests

2007-02-12 Thread Kevin Sutter
Marc (and others), Shouldn't OpenJPA be detecting these final classes and issuing an error message? Kevin On 2/12/07, Marc Prud'hommeaux <[EMAIL PROTECTED]> wrote: Craig- You're right that the classes shouldn't be final, but I don't think that's the cause of the problem. I've committed a fix

Vlad Tatavu is out of the office.

2007-02-12 Thread Vlad Tatavu
I will be out of the office starting 12/02/2007 and will not return until 16/02/2007. I will respond to your message when I return.