Re: Replacing Entities while Managed

2006-11-07 Thread Craig L Russell
Hi Don, The merge operation takes as a parameter a detached instance, not a new instance. TopLink Essentials might not be able to tell the difference between a detached and a new instance. So it might work in that environment. But the behavior you're describing is not portable. Is there

Re: Replacing Entities while Managed

2006-11-07 Thread DonBrady
Surely. (1) We do a find method which returns an entity A from the database. (2) We also have an unmanaged entity instance B separately, that we created outside any persistence context, whose values we wish to use to update those in A, and then rewrite A to the database. (3) We just set the ke

Re: Query test no longer working?

2006-11-07 Thread Craig L Russell
Hi, IIUC, JPA does not disallow dynamic persistent class registration. But if you want the tests to be portable (why?) then you have to statically register them in persistence.xml. Or did I misunderstand this issue? Thanks, Craig On Nov 7, 2006, at 4:09 PM, Abe White wrote: With today's

Re: Query test no longer working?

2006-11-07 Thread Kevin Sutter
Integrated under revision 472347. On 11/7/06, Kevin Sutter <[EMAIL PROTECTED]> wrote: Yep, that seems to be it. I was just re-testing with that and it seems to have worked. I'll drop the changes shortly. Kevin On 11/7/06, Abe White <[EMAIL PROTECTED]> wrote: > > > With today's changes from

Re: Query test no longer working?

2006-11-07 Thread Kevin Sutter
Yep, that seems to be it. I was just re-testing with that and it seems to have worked. I'll drop the changes shortly. Kevin On 11/7/06, Abe White <[EMAIL PROTECTED]> wrote: > With today's changes from SVN, I am hitting the following error > when running > the test bucket Darn static class r

Re: Query test no longer working?

2006-11-07 Thread Abe White
With today's changes from SVN, I am hitting the following error when running the test bucket Darn static class registration... can you just add that type to the list of types registered in when getting the EMF in setUp() and see if it fixes things? I probably should have created a new cla

Query test no longer working?

2006-11-07 Thread Kevin Sutter
Hi, With today's changes from SVN, I am hitting the following error when running the test bucket: <4|true|0.0.0> org.apache.openjpa.persistence.ArgumentException: No metadata was found for type "class org.apache.openjpa.persistence.query.ManyOneEntitySub". The class does not appear in the list of

Re: Replacing Entities while Managed

2006-11-07 Thread Craig L Russell
Hi Don, Could you please be just a bit more specific about what you are trying to do and what error you encounter? Thanks, Craig On Nov 7, 2006, at 2:50 PM, DonBrady wrote: We are converting a TopLink Essentials application to OpenJPA Under Toplink Essentials, we could replace a managed

Re: Welcome, Bryan

2006-11-07 Thread Bryan Noll
I appreciate the invite and look forward to contributing. --Bryan Craig L Russell wrote: Hi Bryan, Congratulations, and welcome to the committers on OpenJPA. I'm looking forward to your continued contributions. Craig On Nov 7, 2006, at 10:59 AM, Patrick Linskey wrote: Hi, Bryan Noll is

Replacing Entities while Managed

2006-11-07 Thread DonBrady
We are converting a TopLink Essentials application to OpenJPA Under Toplink Essentials, we could replace a managed entity with another that had the same identity (key) by doing a merge. When we try this in OpenJPA, we get the following error: An object of type "com.xxx.entity.entities.FeCmeComm

Re: OSGi information in MANIFEST.MF

2006-11-07 Thread Michael Dick
I found this : http://mavenosgiplugin.berlios.de/ I don't know whether it is a Maven 1 or Maven 2 plugin though. The documentation references Knopflerfish ( http://www.knopflerfish.org/programming.html#custom) which uses Ant to generate OSGi information. I haven't had time to look closely at eit

OSGi information in MANIFEST.MF

2006-11-07 Thread Patrick Linskey
Hi, Does anyone know anything about how to automatically generate OSGi information to include in MANIFEST.MF of the assembled jar? For obvious reasons, it'd be nice to create this automatically rather than manually. (Relatedly, I'm looking into putting OSGi information into the jars.) -Patrick

Re: Welcome, Srinivasa

2006-11-07 Thread Craig L Russell
Hi Srinivas, Great to have you on board the committers at OpenJPA. Congratulations, and welcome. Craig On Nov 7, 2006, at 11:00 AM, Patrick Linskey wrote: Hi, Srinivasa is now a committer on OpenJPA. Welcome, Srinivasa! -Patrick -- Patrick Linskey BEA Systems, Inc. ___

Re: Welcome, Bryan

2006-11-07 Thread Craig L Russell
Hi Bryan, Congratulations, and welcome to the committers on OpenJPA. I'm looking forward to your continued contributions. Craig On Nov 7, 2006, at 10:59 AM, Patrick Linskey wrote: Hi, Bryan Noll is now a committer on OpenJPA. Welcome, Bryan! -Patrick -- Patrick Linskey BEA Systems, Inc.

Welcome, Srinivasa

2006-11-07 Thread Patrick Linskey
Hi, Srinivasa is now a committer on OpenJPA. Welcome, Srinivasa! -Patrick -- Patrick Linskey BEA Systems, Inc. ___ Notice: This email message, together with any attachments, may contain information of BEA Systems, Inc.,

Welcome, Bryan

2006-11-07 Thread Patrick Linskey
Hi, Bryan Noll is now a committer on OpenJPA. Welcome, Bryan! -Patrick -- Patrick Linskey BEA Systems, Inc. ___ Notice: This email message, together with any attachments, may contain information of BEA Systems, Inc., its

Re: svn commit: r471080 - /incubator/openjpa/trunk/openjpa-lib/pom.xml

2006-11-07 Thread Kevin Sutter
Thank you, Patrick and Abe! On 11/6/06, Patrick Linskey <[EMAIL PROTECTED]> wrote: I just reverted back to serp 1.11. Once 1.12 is in ibiblio, we can decide whether or not we need the new version. -Patrick -- Patrick Linskey BEA Systems, Inc. _

[jira] Resolved: (OPENJPA-76) add-was-interfaces ant task throws exception on a "non-clean" build.

2006-11-07 Thread Patrick Linskey (JIRA)
[ http://issues.apache.org/jira/browse/OPENJPA-76?page=all ] Patrick Linskey resolved OPENJPA-76. Resolution: Fixed I applied the patch with revision 472018. I changed it slightly to make it use resources instead of files. > add-was-interfaces ant