Re: openjpa-maven-plugin in mojo sandbox

2007-01-10 Thread Bryan Noll
Nice. I think this is a potential barrier to adoption that you're taking down. Good stuff. Rahul Thakur wrote: Hi, I have created a module for OpenJPA Maven plugin under Mojo sandbox: https://svn.codehaus.org/mojo/trunk/mojo/mojo-sandbox/openjpa-maven-plugin/ I will put some usage notes

openjpa-maven-plugin in mojo sandbox

2007-01-10 Thread Rahul Thakur
Hi, I have created a module for OpenJPA Maven plugin under Mojo sandbox: https://svn.codehaus.org/mojo/trunk/mojo/mojo-sandbox/openjpa-maven-plugin/ I will put some usage notes together shortly. Meanwhile, welcome any ideas, suggestions. Cheers, Rahul

[jira] Created: (OPENJPA-101) enhance JPQL Constructor Expressions implementation

2007-01-10 Thread wanyna (JIRA)
enhance JPQL Constructor Expressions implementation --- Key: OPENJPA-101 URL: https://issues.apache.org/jira/browse/OPENJPA-101 Project: OpenJPA Issue Type: Improvement Components: qu

Re: [VOTE] Have official OpenJPA site use the confluence wiki page

2007-01-10 Thread Kevin Sutter
+1 On 1/10/07, Patrick Linskey <[EMAIL PROTECTED]> wrote: +1 -- Patrick Linskey BEA Systems, Inc. ___ Notice: This email message, together with any attachments, may contain information of BEA Systems, Inc., its subsidiar

sql statement batching

2007-01-10 Thread David Wisneski
Does OpenJPA support sql batching (i.e. the jdbc addBatch api on a prepared Statement)? The user's guide shows how to set the addBatch limit, but it does not work. It would appear that if there was code to do this it was removed. I think that most ORM runtimes support this feature and we will

RE: [VOTE] Have official OpenJPA site use the confluence wiki page

2007-01-10 Thread Patrick Linskey
+1 -- Patrick Linskey BEA Systems, Inc. ___ Notice: This email message, together with any attachments, may contain information of BEA Systems, Inc., its subsidiaries and affiliated entities, that may be confidential, p

[VOTE] Have official OpenJPA site use the confluence wiki page

2007-01-10 Thread Marc Prud'hommeaux
I just noticed that the OpenEJB main page uses the confluence wiki (http://incubator.apache.org/openejb/), something which I hadn't been aware was possible. Since the OpenJPA content is being mostly maintained via our own wiki, what do people thing of having http://incubator.apache.org/

[jira] Commented: (OPENJPA-98) Java deadlock when insert in t1 and find in t2 when using IBM JVM 1.5.0

2007-01-10 Thread Kevin Sutter (JIRA)
[ https://issues.apache.org/jira/browse/OPENJPA-98?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12463755 ] Kevin Sutter commented on OPENJPA-98: - We're thinking along the same lines... The super.loadClass just ends up i

[jira] Resolved: (OPENJPA-100) entries failing to be processed for persistence unit rooted in an EAR

2007-01-10 Thread Patrick Linskey (JIRA)
[ https://issues.apache.org/jira/browse/OPENJPA-100?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Patrick Linskey resolved OPENJPA-100. - Resolution: Fixed Resolved with 495028. > entries failing to be processed for persiste

[jira] Created: (OPENJPA-100) entries failing to be processed for persistence unit rooted in an EAR

2007-01-10 Thread Patrick Linskey (JIRA)
entries failing to be processed for persistence unit rooted in an EAR Key: OPENJPA-100 URL: https://issues.apache.org/jira/browse/OPENJPA-100 Project: OpenJPA

[jira] Commented: (OPENJPA-98) Java deadlock when insert in t1 and find in t2 when using IBM JVM 1.5.0

2007-01-10 Thread Marc Prud'hommeaux (JIRA)
[ https://issues.apache.org/jira/browse/OPENJPA-98?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12463745 ] Marc Prud'hommeaux commented on OPENJPA-98: --- I wonder what would happen if we replaced: return Class.fo

[jira] Commented: (OPENJPA-98) Java deadlock when insert in t1 and find in t2 when using IBM JVM 1.5.0

2007-01-10 Thread Kevin Sutter (JIRA)
[ https://issues.apache.org/jira/browse/OPENJPA-98?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12463732 ] Kevin Sutter commented on OPENJPA-98: - Yes, I already did that printf thing. It varies on exactly which class is

[jira] Commented: (OPENJPA-98) Java deadlock when insert in t1 and find in t2 when using IBM JVM 1.5.0

2007-01-10 Thread Marc Prud'hommeaux (JIRA)
[ https://issues.apache.org/jira/browse/OPENJPA-98?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12463713 ] Marc Prud'hommeaux commented on OPENJPA-98: --- I've never seen any problem like this. It is interesting that

[jira] Created: (OPENJPA-99) Enhanced pcNewInstance redundantly clears fields

2007-01-10 Thread Craig Russell (JIRA)
Enhanced pcNewInstance redundantly clears fields - Key: OPENJPA-99 URL: https://issues.apache.org/jira/browse/OPENJPA-99 Project: OpenJPA Issue Type: Bug Components: kernel

Re: How to write it in JPQL

2007-01-10 Thread Marc Prud'hommeaux
That seems reasonable enough. Unfortunately, the JPQL query specification disallows anything but aggregate or state field expressions in "SELECT NEW" clauses. It might be useful as a future extension to OpenJPA, though. Can you file an enhancement request at http://issues.apache.org/jira/

Re: What causes an optimistic exception?

2007-01-10 Thread Michael Dick
Have you tried setting trimStackTrace to false in pom.xml? It should look something like this : . . . org.apache.maven.plugins maven-surefire-plugin false .

RE: has @SqlResultSetMapping been tested

2007-01-10 Thread Pinaki Poddar
Simple things (as below) work with 0.9.7 OpenJPA public void testSQLQuery() { EntityManager em = getEM(); em.getTransaction().begin(); Person original = new Person(); original.setFirst("OpenJPA"); em.persist(original); em.getTransaction().commit

Re: has @SqlResultSetMapping been tested

2007-01-10 Thread George Hongell
Yes several instances of DeptBean were persisted before the createNativequery was issued. I am running 0.9.7-incubating-SNAPSHOT On 1/10/07, Pinaki Poddar <[EMAIL PROTECTED]> wrote: > Query updateDeptName = _em.createNativeQuery(sql,"DeptBeanMapping"); If any persistence operation using DeptB

Re: What causes an optimistic exception?

2007-01-10 Thread Dain Sundstrom
Finally got some time to dig into this. The problem was I was attempting to create a bean that already existed (a bug in my test case). It is possible to get the original SQL exception message out of JPA, so I could know that I was getting a duplicate key? -dain On Jan 4, 2007, at 10:29

RE: has @SqlResultSetMapping been tested

2007-01-10 Thread Pinaki Poddar
> Query updateDeptName = _em.createNativeQuery(sql,"DeptBeanMapping"); If any persistence operation using DeptBean.class preceeds this call (e.g. _em.persist(new DeptBean())), then is there any change in behavior? Pinaki Poddar BEA Systems 415.402.7317 -Original Message- From: George

RE: has @SqlResultSetMapping been tested

2007-01-10 Thread Patrick Linskey
What version of OpenJPA are you using? IIRC, there were issues, but they were resolved a little while back. -Patrick -- Patrick Linskey BEA Systems, Inc. ___ Notice: This email message, together with any attachments, may cont

Fwd: has @SqlResultSetMapping been tested

2007-01-10 Thread George Hongell
I tried using both a native query and it failed, has it ever been tested? also named native query with resultSetMapping fails at runtime, also @SqlResultSetMappings does not seem to be implemented in openjpa and fails in the MappingTool with *java.lang.ArrayStoreException* using @SqlResultSetMapp

[jira] Commented: (OPENJPA-98) Java deadlock when insert in t1 and find in t2 when using IBM JVM 1.5.0

2007-01-10 Thread Kevin Sutter (JIRA)
[ https://issues.apache.org/jira/browse/OPENJPA-98?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12463636 ] Kevin Sutter commented on OPENJPA-98: - I'll take ownership of this report (for now, at least). I can now reprodu

[jira] Assigned: (OPENJPA-98) Java deadlock when insert in t1 and find in t2 when using IBM JVM 1.5.0

2007-01-10 Thread Kevin Sutter (JIRA)
[ https://issues.apache.org/jira/browse/OPENJPA-98?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Kevin Sutter reassigned OPENJPA-98: --- Assignee: Kevin Sutter > Java deadlock when insert in t1 and find in t2 when using IBM JVM 1.

Re: How to write it in JPQL

2007-01-10 Thread wanyna
There are two tables A and B, I need to execute sql like "insert into A select ... from B". I use JPQL Constructor Expressions, select new A(...) from B, got A list then persist. But some data of A depends on program context, not from B, for simple example: select new A(B.column1, 'xxx') from B,

Re: How to write it in JPQL

2007-01-10 Thread wanyna
There are two tables A and B, I need to execute sql like "insert into A select ... from B". I use JPQL Constructor Expressions, select new A(...) from B, got A list then persist. But some data of A depends on program context, not from B, for simple example: select new A(B.column1, 'xxx') from B,

Re: How to write it in JPQL

2007-01-10 Thread wanyna
There are two tables A and B, I need to execute sql like "insert into A select ... from B". I use JPQL Constructor Expressions, select new A(...) from B, got A list then persist. But some data of A depends on program context, not from B, for simple example: select new A(B.column1, 'xxx') from B,

Re: How to write it in JPQL

2007-01-10 Thread Marc Prud'hommeaux
On Jan 10, 2007, at 12:12 AM, wanyna wrote: Hi all. I have two questions: 1. Here is my sql string: select 'xxx', TABLE_A.column1 from TABLE_A; there is a string 'xxx' as a constant value, how to translate it to JPQL? I don't think it is possible. Why would you need to do that? 2. Another

How to write it in JPQL

2007-01-10 Thread wanyna
Hi all. I have two questions: 1. Here is my sql string: select 'xxx', TABLE_A.column1 from TABLE_A; there is a string 'xxx' as a constant value, how to translate it to JPQL? 2. Another sql used under oracle: select TABLE_A.column1 from TABLE_A where rownum<10; how to limit range of result in JP