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

2007-02-13 Thread Hans J. Prueller
Don't be afraid - it is definitely NOT JBOSS ;-) Isn't it hibernate behind the scenes of the JBoss CMP engine? I have been using hibernate for several years now and I'm pretty happy with it. I'm not sure where all the RedHat/JBoss stuff is going - I assume betting on OpenJPA/Geronimo will be a go

Exception in thread "main" <4|false|0.0.0> org.apache.openjpa.persistence.InvalidStateException: You cannot transfer large result set fields from one object or field to another.

2007-02-13 Thread Ritika Maheshwari
Hi, I have orderline defined as LRS in Orders.In persistence.xml I have this defined My test program gives the above error em.getTransaction().begin(); Query query = em.createQuery("select object(o)from Orders o where o.o_id=3001 and o.o_d_id='02' and o.o_w_id='0005'"); List rs1 = query.get

[jira] Created: (OPENJPA-145) support Java5 wildcard on OpenJPA

2007-02-13 Thread yun teng (JIRA)
support Java5 wildcard on OpenJPA - Key: OPENJPA-145 URL: https://issues.apache.org/jira/browse/OPENJPA-145 Project: OpenJPA Issue Type: Improvement Components: jpa, kernel Environment: OPEN

Re: accessing archived threads with Nabble

2007-02-13 Thread Bryan Noll
No problem. I just thought I'd throw it up here in case it was unknown to anyone. Marc Prud'hommeaux wrote: I agree that Nabble is much more navigable. I've been linking to the mail-archives.apache.org archive just because all the examples I've seen of posting vote results seem to reference

Re: accessing archived threads with Nabble

2007-02-13 Thread Marc Prud'hommeaux
I agree that Nabble is much more navigable. I've been linking to the mail-archives.apache.org archive just because all the examples I've seen of posting vote results seem to reference that site. On Feb 13, 2007, at 7:48 AM, Bryan Noll wrote: I just wanted to throw this up here real quick

Re: pessimistic locking

2007-02-13 Thread Abe White
First, I want to point out that I was wrong about needing to set a lock level in code during an optimistic transaction. So actually for us to run the benchmark, the only necessary setting is: openjpa.LockManager: pessimistic Contrary to what Patrick said and I backed up, we don't need to set

Re: Do mapped superclasses work at all in OpenJPA?

2007-02-13 Thread Abe White
Secondly, are we parsing the XML file multiple times? The only way for the first warning to be fired is if OpenJPA has read my entity mappings, but the exception that is thrown later is a SAX exception which implies that OpenJPA is reading the file again. Sounds like an inefficient startup algo

Re: Do mapped superclasses work at all in OpenJPA?

2007-02-13 Thread Dain Sundstrom
On Feb 13, 2007, at 11:19 AM, Patrick Linskey wrote: I also prefer ignoring it consistently. But considering that enhancement fails, this seems like more than a WARN. More like a SEVERE. And if you get a SEVERE during enhancement, should we really put the EMF into service at all? Issue #2? I a

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

2007-02-13 Thread Craig L Russell
Hi Kevin, On Feb 13, 2007, at 11:25 AM, Kevin Sutter (JIRA) wrote: Kevin Sutter commented on OPENJPA-141: -- Personally, I think I provide sufficient due diligence on the Issues that I own to stick with the normal "commit then review" approach. There ar

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

2007-02-13 Thread Dain Sundstrom (JIRA)
[ https://issues.apache.org/jira/browse/OPENJPA-142?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12472844 ] Dain Sundstrom commented on OPENJPA-142: I think I found a related bug to this. When you have a mapped-supe

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

2007-02-13 Thread Kevin Sutter (JIRA)
[ https://issues.apache.org/jira/browse/OPENJPA-141?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12472840 ] Kevin Sutter commented on OPENJPA-141: -- Personally, I think I provide sufficient due diligence on the Issues th

RE: Do mapped superclasses work at all in OpenJPA?

2007-02-13 Thread Patrick Linskey
> > I also prefer ignoring it consistently. But considering that > > enhancement fails, this seems like more than a WARN. More like a > > SEVERE. And if you get a SEVERE during enhancement, should we > > really put the EMF into service at all? Issue #2? > > I agree. If we get an enhancement

Re: Do mapped superclasses work at all in OpenJPA?

2007-02-13 Thread Dain Sundstrom
On Feb 13, 2007, at 9:59 AM, Craig L Russell wrote: Hi Dain, Sounds like a jackpot full of issues here. On Feb 13, 2007, at 9:17 AM, Dain Sundstrom wrote: I found the problem. In my entity mappings file, I had a mapping for a bean that no longer exists. When I comment out that mapping,

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

2007-02-13 Thread Dain Sundstrom
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, can you grab the last 20 pks from one of the tables, we may be able to guess the strategy One of

Re: pessimistic locking

2007-02-13 Thread Craig L Russell
This benchmark runs best with a combination of optimistic locking (most cases) and pessimistic locking (some specific uses identified explicitly in the code). Where concurrency is low, an optimistic approach works well. In specific cases, optimistic results in bad performance due to the n

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

2007-02-13 Thread Craig Russell (JIRA)
[ https://issues.apache.org/jira/browse/OPENJPA-141?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12472829 ] Craig Russell commented on OPENJPA-141: --- Given the number of iterations already documented on this issue, woul

RE: pessimistic locking

2007-02-13 Thread Patrick Linskey
> We'd also have to set the LockManager property to pessimistic to get > database locks. Hmm. It would seem that the LockManager should default to pessimistic when Optimistic=false. Any reason why this is not the case? -Patrick -- Patrick Linskey BEA Systems, Inc. __

Re: pessimistic locking

2007-02-13 Thread Abe White
We'd also have to set the LockManager property to pessimistic to get database locks. And just to build on what Patrick is saying: OpenJPA can do locking within optimistic transactions on individual instances, but you have to set a lock level on the FetchPlan in code, which I don't think we

RE: pessimistic locking

2007-02-13 Thread Patrick Linskey
> Just to clarify... If we set up OpenJPA in this manner > (Optimistic to false > and the Read and Write Lock levels to None), then all > transactions would > then be running in Pessimistic mode, right? That is, we > don't have the > means of being more granular with these settings, do we? I'

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

2007-02-13 Thread Kevin Sutter
Exactly. On 2/13/07, Patrick Linskey (JIRA) <[EMAIL PROTECTED]> wrote: [ https://issues.apache.org/jira/browse/OPENJPA-141?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12472813] Patrick Linskey commented on OPENJPA-141: -

Re: pessimistic locking

2007-02-13 Thread Kevin Sutter
Patrick, Just to clarify... If we set up OpenJPA in this manner (Optimistic to false and the Read and Write Lock levels to None), then all transactions would then be running in Pessimistic mode, right? That is, we don't have the means of being more granular with these settings, do we? Kevin On

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

2007-02-13 Thread Patrick Linskey (JIRA)
[ https://issues.apache.org/jira/browse/OPENJPA-141?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12472813 ] Patrick Linskey commented on OPENJPA-141: - > Please attach an svn patch to this JIRA when it's ready. I'd li

Re: Do mapped superclasses work at all in OpenJPA?

2007-02-13 Thread Craig L Russell
Hi Dain, Sorry for not being clear. My comment was supposed to be about xml bugs in general. The annotations are very well tested in the TCK; the xml "overrides" are reputedly less well tested, so it's likely that there are bugs to be found in implementations, even if they pass the TCK. I

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

2007-02-13 Thread Hans J. Prueller
> Can you tell us your current J2EE vendor, and if possible the generation > strategy selected in the vendor deployment descriptor. If not, can you > grab the last 20 pks from one of the tables, we may be able to guess the > strategy One of the reasons why we are migrating is that the current

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

2007-02-13 Thread Hans J. Prueller
Patrick, > It would certainly be possible to implement such a thing in OpenJPA, but > there is no such feature in place currently. perhaps this would be a nice feature for the future - if I'll find another working solution that avoids the case of generating an already existing PK I don't need it.

Re: Do mapped superclasses work at all in OpenJPA?

2007-02-13 Thread Craig L Russell
Hi Dain, Sounds like a jackpot full of issues here. On Feb 13, 2007, at 9:17 AM, Dain Sundstrom wrote: I found the problem. In my entity mappings file, I had a mapping for a bean that no longer exists. When I comment out that mapping, the problem goes away. I only fond the problem by tur

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

2007-02-13 Thread Craig Russell (JIRA)
[ https://issues.apache.org/jira/browse/OPENJPA-141?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12472795 ] Craig Russell commented on OPENJPA-141: --- Nice work, Kevin and Abe. Just a reminder. Please attach an svn patc

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

2007-02-13 Thread Kevin Sutter (JIRA)
[ https://issues.apache.org/jira/browse/OPENJPA-141?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12472790 ] Kevin Sutter commented on OPENJPA-141: -- Sounds good, Abe. Thanks for the comments, Abe and Craig. Here's the

[jira] Commented: (OPENJPA-144) JDBCConfigurationImpl does not support JNDI lookup for non-jta-data-source.

2007-02-13 Thread Patrick Linskey (JIRA)
[ https://issues.apache.org/jira/browse/OPENJPA-144?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12472786 ] Patrick Linskey commented on OPENJPA-144: - Are you also specifying a jta-data-source, or only a non-jta-data

Re: Kodo passes JPA tck

2007-02-13 Thread Geir Magnusson Jr.
On Feb 13, 2007, at 11:30 AM, Dain Sundstrom wrote: On Feb 13, 2007, at 5:27 AM, robert burrell donkin wrote: On 2/13/07, Geir Magnusson Jr. <[EMAIL PROTECTED]> wrote: Pointing people at the page is good, but doesn't solve the problem. i was a little confused about which problem you needed

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

2007-02-13 Thread Dain Sundstrom
Can you tell us your current J2EE vendor, and if possible the generation strategy selected in the vendor deployment descriptor. If not, can you grab the last 20 pks from one of the tables, we may be able to guess the strategy. In general, if you vendor is using a UUID, you should able to u

[jira] Created: (OPENJPA-144) JDBCConfigurationImpl does not support JNDI lookup for non-jta-data-source.

2007-02-13 Thread Brad L Vandermoon (JIRA)
JDBCConfigurationImpl does not support JNDI lookup for non-jta-data-source. - Key: OPENJPA-144 URL: https://issues.apache.org/jira/browse/OPENJPA-144 Project: OpenJPA

[jira] Created: (OPENJPA-143) Problems with Single Table Inheritance Strategy (and Discriminator Type of Integer)

2007-02-13 Thread Kevin Sutter (JIRA)
Problems with Single Table Inheritance Strategy (and Discriminator Type of Integer) --- Key: OPENJPA-143 URL: https://issues.apache.org/jira/browse/OPENJPA-143 Project: O

Re: Do mapped superclasses work at all in OpenJPA?

2007-02-13 Thread Dain Sundstrom
I found the problem. In my entity mappings file, I had a mapping for a bean that no longer exists. When I comment out that mapping, the problem goes away. I only fond the problem by turning the debug level up (the full log is attached). In the log we do warn that the class was not foun

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

2007-02-13 Thread Patrick Linskey
> I can remember a legacy persistence framework that was able to retry > the insert statement with a "second-try generated PK" just > for the case > the currently generated one has already been inserted by > another process. It would certainly be possible to implement such a thing in OpenJPA, bu

Re: Open letter from an OpenJPA performance perspective

2007-02-13 Thread Abe White
I doubt anyone has done much performance analysis of stock OpenJPA, especially without caching. BEA's performance efforts obviously focus on Kodo instead. Which is why we all appreciate the performance work you're doing now, even if we (well, mostly just me) might harp on the details. __

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

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

2007-02-13 Thread Abe White (JIRA)
[ https://issues.apache.org/jira/browse/OPENJPA-141?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12472758 ] Abe White commented on OPENJPA-141: --- Craig: There doesn't appear to be any hashCode/equals performance issues. As

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

2007-02-13 Thread Abe White
does openJPA provide the strategy to re-generate another value for the PK or do we have to manually deal with this case? http://incubator.apache.org/openjpa/docs/latest/manual/ manual.html#ref_guide_sequence ___ Notice: Th

Re: Entity name ignored in queries (0.9.6)?

2007-02-13 Thread Dain Sundstrom
Excellent. I added a watch for this issue and will try out the fix as soon it is available. In the mean time, I changed my code generator to generate classes with the exact entity name I want :) -dain On Feb 13, 2007, at 12:01 AM, Marc Prud'hommeaux wrote: Dain- I've reproduced this pr

Re: Kodo passes JPA tck

2007-02-13 Thread Dain Sundstrom
On Feb 13, 2007, at 5:27 AM, robert burrell donkin wrote: On 2/13/07, Geir Magnusson Jr. <[EMAIL PROTECTED]> wrote: Pointing people at the page is good, but doesn't solve the problem. i was a little confused about which problem you needed to solve :-) I think I want to make the list availab

AW: Using @GeneratedValue for IDs on already existing tables

2007-02-13 Thread Hans J. Prueller
Patrick, thank you for your reply. The generation algorithm we are using currently is provided from our EJB2.1 CMP container and is a blackbox for us. As we are not very happy with the current solution we are planning/evaluating the migration of the whole EJB2.1 persistence layer to OpenJPA/JPA.

accessing archived threads with Nabble

2007-02-13 Thread Bryan Noll
I just wanted to throw this up here real quick, because I noticed Marc gave the apache archives site in one of his vote tally threads for referencing (http://mail-archives.apache.org/mod_mbox/incubator-open-jpa-dev/). Someone has set this list up at Nabble. http://www.nabble.com/open-jpa-dev

Open letter from an OpenJPA performance perspective

2007-02-13 Thread Kevin Sutter
Hi, There have been several requests about the performance analysis that we've been doing. This performance analysis has resulted in three JIRA Issues thus far (OPENJPA-115, OPENJPA-138, and OPENJPA-141) with more to come, I'm sure. We're not ready to go public with the specific results yet, but

Re: Do mapped superclasses work at all in OpenJPA?

2007-02-13 Thread Kevin Sutter
Just to add a "me too" to help out Dain... I have also seen this problem while debugging other problems. At the time I figured I was doing something wrong, so I didn't report it. I'll see if I can reproduce it again and provide more insights. Kevin On 2/13/07, Marc Prud'hommeaux <[EMAIL PROTE

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

2007-02-13 Thread Kevin Sutter (JIRA)
[ https://issues.apache.org/jira/browse/OPENJPA-141?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12472674 ] Kevin Sutter commented on OPENJPA-141: -- > No, the current code holds the Classes with hard refs, and maps them

Re: Kodo passes JPA tck

2007-02-13 Thread robert burrell donkin
On 2/13/07, Geir Magnusson Jr. <[EMAIL PROTECTED]> wrote: Pointing people at the page is good, but doesn't solve the problem. i was a little confused about which problem you needed to solve :-) I think I want to make the list available to committers, but not publicly. For example, what if a

Re: Kodo passes JPA tck

2007-02-13 Thread Geir Magnusson Jr.
Pointing people at the page is good, but doesn't solve the problem. I think I want to make the list available to committers, but not publicly. For example, what if a committer signs the NDA, and don't tell their employer? committers participate here as individuals... On Feb 13, 2007, at 8

Re: Kodo passes JPA tck

2007-02-13 Thread robert burrell donkin
On 2/12/07, Geir Magnusson Jr. <[EMAIL PROTECTED]> wrote: Yes, the problem is that it's not publicly visible. I need to solve that... http://www.apache.org/jcp names some lists i could add some links to that page from the dev and incubator sites (if that'd be any use) - robert

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

2007-02-13 Thread Marc Prud'hommeaux
With 7 votes in favor and none against, the vote passes! The vote thread can be viewed at: http://mail-archives.apache.org/mod_mbox/incubator-open-jpa-dev/ 200702.mbox/[EMAIL PROTECTED] I've updated the dependencies in the pom.xml file and committed. Thanks to all who voted! On Feb 9

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

2007-02-13 Thread Marc Prud'hommeaux (JIRA)
[ https://issues.apache.org/jira/browse/OPENJPA-142?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12472557 ] Marc Prud'hommeaux commented on OPENJPA-142: This can be worked around by adding the annotation to the c

Re: Entity name ignored in queries (0.9.6)?

2007-02-13 Thread Marc Prud'hommeaux
Dain- I've reproduced this problem and reported it at: https://issues.apache.org/jira/browse/OPENJPA-142 The only workaround is to add the @Entity(name="someAlias") annotation to the class in addition to specifying it in the orm.xml file. On Feb 12, 2007, at 11:49 AM, Dain Sundstrom