Re: openjpa ignoring column annotation

2010-01-12 Thread Rick Curtis
http://n2.nabble.com/How-to-remove-an-entity-from-a-result-list-error-result-list-is-read-only-td209686.html On Tue, Jan 12, 2010 at 8:41 AM, racarlson racarl...@mediacomcc.com wrote: I switched one query to JPAQL but still got the same messages, then I listed out each class in

Re: get generated query

2010-01-11 Thread Rick Curtis
Daryl - Check out org.apache.openjpa.lib.jdbc.JDBCListener or org.apache.openjpa.lib.jdbc.AbstractJDBCListener. On Mon, Jan 11, 2010 at 10:30 AM, Daryl Stultz da...@6degrees.com wrote: Hello, I'm writing a very simple tool to run queries from a text file. I'd like to show the generated SQL.

Re: Known issues - Floats and doubles may lose precision when stored.

2010-01-07 Thread Rick Curtis
I found that care needs to be taken when using Floats, Doubles, BigDecimal, etc... OpenJPA seemed to work in most cases when I was using existing table definitions but I can't say that OpenJPA always generated the proper tables when using synchronize mappings. One oddity/problem I came across had

Re: OpenJPA not connecting the database

2009-12-22 Thread Rick Curtis
Try setting property name=openjpa.Log value=DefaultLevel=TRACE / and upload the trace somewhere that should give us some more info. To reiterate a previous question, what application server are you running with? -- Thanks, Rick alvaroCab wrote: Hi, thank you for your answers. The

Re: OpenJPA not connecting the database

2009-12-22 Thread Rick Curtis
I'm guessing that you are missing some of the openjpa jars. If you look at the lib dir of a 1.0.x binary download, you'll notice that there are more than just commons-lang, commons-collections, serp, and the openjpa jars. Maybe you could try putting all of those on your classpath? Thanks, Rick

Re: NPE loading fields of one-to-many collection

2009-12-15 Thread Rick Curtis
This probably would have helped earlier in debugging try setting openjpa.RuntimeUnenhancedClasses=unsupported in your persistence.xml. This will cause OpenJPA throw an exception when an unenhanced in encountered by the runtime. -- Thanks, Rick On Tue, Dec 15, 2009 at 4:51 PM, KARR, DAVID

Re: Eclipse WTP tomcat plugin

2009-12-08 Thread Rick Curtis
Adam - Have you tried setting the javaagent without the =properties=persis ? Another option would be build/package time enhancement? Thanks, Rick Adam Hardy-4 wrote: I'm using the Eclipse Galileo and WTP to run an embedded instance of tomcat in Eclipse and I am trying to run

Re: Setter not working for detached object

2009-12-04 Thread Rick Curtis
Tao - Can you post a simple testcase demonstrating the problem? -- Thanks, Rick On Thu, Dec 3, 2009 at 3:38 PM, Javatao taolu2...@gmail.com wrote: Hi, Experts, I am having an issue with detached object in OpenJPA. Setter method of relationship field does not work. Setter method of

Re: Why does the enhancer create a PROTECTE no-args constructor by default?

2009-12-04 Thread Rick Curtis
David- Per the JPA spec -- The entity class must have a no-arg constructor. The entity class may have other constructors as well. The no-arg constructor must be public or protected. ...so if your Entity doesn't have one, OpenJPA will do it for you. -- Thanks, Rick On Fri, Dec 4, 2009 at 1:29

Re: slow Query (but not the SQL itself) (OpenJPA 1.2.x)

2009-12-03 Thread Rick Curtis
Marc - In the case where you call em.find(...) and it takes 500ms how long does that operation take if the result doesn't need to be detached? The reason I ask is that I've been doing some performance work and we found that in some instances we are spending way too much time detaching Entities.

Re: detach question

2009-12-03 Thread Rick Curtis
When you call cc.merge(ooo); any changes made to that instance while it was detached will be persisted to the DB. I assume your comment Here I modify the ooo but I want this modif to be persist, not the other one before means that you only want the changes from after the tran begins to be

Re: Is it possible to turn off AutoDetach?

2009-11-16 Thread Rick Curtis
Adam - What is the reason that you want to disable AutoDetach? -- Thanks, Rick On Mon, Nov 16, 2009 at 11:16 AM, Adam Borkowski borkos.de...@gmail.comwrote: I tried to turn off auto detaching after commit or entity manager closing by setting openjpa.AutoDetach property to false or to

Re: Disabling enhancement on my netbeans project

2009-10-20 Thread Rick Curtis
sriram- To use OpenJPA you will need to do either build time or runtime enhancement. The DynamicEnhancement that you disabled is something that OpenJPA added to try to automagically hook up the enhancer, but it isn't perfect by any means. I'd suggest reading through the OpenJPA docs/manual [1]

Re: HSQLDB - problems

2009-10-12 Thread Rick Curtis
David- I'm not quire sure whats going on, but do you have a stack showing the failure? Thanks, Rick On Sun, Oct 11, 2009 at 6:18 PM, David Beer david.m.b...@googlemail.comwrote: Hi All I am trying to create an application using HSQLDB 1.8.1. I have created a server database for testing.

Re: relationship EntityManager and JDBC Connection?

2009-09-28 Thread Rick Curtis
http://commons.apache.org/dbcp/configuration.html Jean-Baptiste BRIAUD -- Novlog wrote: OK, it works but I'd like to set more options in the persistence.xml like the pool size. I didn't find how to set that up. Any link ? Thanks. On Sep 28, 2009, at 15:32 , Rick Curtis wrote: I'd

Re: Problem enabling Remote Commit Events

2009-09-21 Thread Rick Curtis
The javadoc for org.apache.openjpa.event.RemoteCommitProvider states A remote commit provider must not fire remote events for commits that originated with a local broker ...so, if you are operating against a single EMF, your remote events won't ever be invoked. Hopefully this helps.? -

Re: Enhancer on tomcat

2009-09-15 Thread Rick Curtis
Chris - Yes it looks like the -javaagent did not work. As a starting point to debug this problem, I'd suggest setting openjpa.RuntimeUnenhancedClasses=unsupported in your persistence.xml file to disable the subclassing enhancement. Let us know what you come up with. -Rick On Tue, Sep 15, 2009

Re: [NEWBIE] OpenJPA Cannot get id field returned

2009-09-08 Thread Rick Curtis
Try turning on SQL trace to see what SQL is being generated from your JPQL. Rick On Sep 8, 2009, at 3:54 AM, B.L. Zeebub roger.var...@googlemail.com wrote: Jean-Baptiste BRIAUD -- Novlog wrote: Did you try GenerationType.IDENTITY ? @GeneratedValue(strategy =

Re: Eclipse project Build Time Enhancement

2009-09-08 Thread Rick Curtis
What do you mean by eclipse project? It sounds like you may have already tried the Eclipse OpenJPA plugin and ran into problems? Normally I setup an ant builder[1] when running in Eclipse. Rick [1] http://webspherepersistence.blogspot.com/2009/04/openjpa-enhancement-eclipse-builder.html

Re: Memory Issues

2009-08-25 Thread Rick Curtis
Kevin - I'm willing to bet that the problem you're running into is a result of not enhancing your Entities. Take a read through the 'Entity Enhancement' page [1] and let us know how it goes. Thanks, Rick [1] http://openjpa.apache.org/entity-enhancement.html On Tue, Aug 25, 2009 at 9:24 AM,

Re: java.lang.StackOverflowError Exception after enabling cach

2009-08-18 Thread Rick Curtis
Another option would be to enhance your classes at build time. That would ensure that you are running with enhanced Entities. -Rick http://openjpa.apache.org/entity-enhancement.html -- Checkout the Build Time Enhancement section. -- View this message in context:

Re: how to use openjpa event listener ?

2009-08-10 Thread Rick Curtis
by the JEE contianer.I think the LifecycleListener could be set in persistent.xml,not only used by java code. Thanks Rick. illhan Rick Curtis wrote: Illhan - In your application initialization I believe you could do something like this to get a reference to the EntityManagerFactory

Re: ClassStrategy.

2009-08-07 Thread Rick Curtis
Chris - I built my 1.2.x workspace and found it in the openjpa-all jar. I also checked in the binary download from the openjpa website and the class was there also. /org/apache/openjpa/jdbc/meta/ClassStrategy.class -Rick On Fri, Aug 7, 2009 at 2:43 AM, C N Davies c...@cndavies.com wrote:

Re: ClassStrategy.

2009-08-07 Thread Rick Curtis
the openjpa-1.2.x.jar file. -Donald Rick Curtis wrote: Chris - I built my 1.2.x workspace and found it in the openjpa-all jar. I also checked in the binary download from the openjpa website and the class was there also. /org/apache/openjpa/jdbc/meta/ClassStrategy.class -Rick

Re: how to use openjpa event listener ?

2009-08-06 Thread Rick Curtis
Illhan - In your application initialization I believe you could do something like this to get a reference to the EntityManagerFactory OpenJPAEntityManager oem = OpenJPAPersistence.cast(em); OpenJPAEntityManagerFactory oemf =

Re: How to encrypt DB password in persistence.xml

2009-08-06 Thread Rick Curtis
Yu Wang - OPENJPA-1089[1] wasn't your exact problem, but I want you to be aware that a change was made. Thanks - Rick [1] https://issues.apache.org/jira/browse/OPENJPA-1089 -- View this message in context:

Re: EntityExistsException issue

2009-08-05 Thread Rick Curtis
Udi wrote: Hey, I have this case: class Book{ @id protected long id; private static number = 0; @prePersist private void makeSomeID(){ id = ++number; } } class Persister{ public static void main(...){ while (true){

Re: Persist issue in multithreaded environment

2009-08-03 Thread Rick Curtis
Claudio - This is a bit of a stretch, but do you have a Version field [1] on each of your Entities? - Rick [1] http://openjpa.apache.org/builds/latest/docs/manual/manual.html#jpa_overview_pc_version Claudio Di Vita wrote: Hi to all, I'm having some troubles using OpenJPA in a

Re: enhancing entity which is a subclass

2009-07-27 Thread Rick Curtis
Can you post snippets of your Entities and your persistence.xml file? -Rick On Mon, Jul 27, 2009 at 7:47 AM, pdd pbar...@gmail.com wrote: Everything works with EclipseLink and TopLink but fails with OpenJPA. Tried with runtime as well as build time enhancement. The problem is the entity

Re: enhancing entity which is a subclass

2009-07-27 Thread Rick Curtis
After looking at the spec, it looks like you should be using the mapped-superclass XML descriptor on the UserModelBaseImpl class and com.example.model.impl.UserModelImpl needs to be added to your list of persistent classes. See section 2.11 - 'Inheritance' for more details. Let me know how it

Re: newbie: null Entity Manager Factory in Eclipse

2009-07-20 Thread Rick Curtis
It sounds like your META-INF/persistence.xml file isn't found on your classpath when running your RCP application. I really wish that createEntityManagerFactory would do something other than return null if a persistence unit isn't found. I'd suggest taking a close look at the classpath for your

Re: [VOTE] OpenJPA Logo Contest - Run-off Voting

2009-07-15 Thread Rick Curtis
2 -Rick On Wed, Jul 15, 2009 at 8:20 AM, Donald Woods dwo...@apache.org wrote: After the second round of voting, we have a tie between two logos, so we'll start a run-off round that runs through midnight July 21. Please post your votes to the wiki page below [1] or reply to this email

Re: correct way to load persistent metadata at startup

2009-07-09 Thread Rick Curtis
Simon - I started looking at the patch you attached to OPENJPA-250 today and I'm wondering if you had to make any additional changes to get it working properly in your environment? I applied the patch and I ran a fairly simple scenario with a number of threads going and I ran into some issues

Re: null values not updating

2009-07-08 Thread Rick Curtis
Chris- You may want to try adding a @Version field to your Entity. -Rick On Wed, Jul 8, 2009 at 1:43 AM, coloradoflyer open...@parallelsw.comwrote: Hi all, I'm working on a very simple setting from openejb(3.1)/openjpa(1.2.1)/Postgres-8.3 I can retrieve a persistent object without

Re: Intercepting/blocking delete

2009-07-06 Thread Rick Curtis
I don't think the @PreRemove annotation will do what you're looking to do. I assume you want your application to be able to blindly remove an Entity and have the logic in your @PreRemove method decide whether or not the remove should happen? I don't see any mention of stopping a remove

Re: correct way to load persistent metadata at startup

2009-07-06 Thread Rick Curtis
Simon - Any luck with trying out that patch? I'm looking into removing the synchronization of the MetaDataRepository (As documented by OPENJPA-250) and would like to know how this exercise went for you. -Rick Simon Droscher wrote: I'm trying out the synchronization changes in

Re: did pass params - Attempt to insert null into a non-nullable column

2009-07-01 Thread Rick Curtis
John - It looks like you annotated your Person.id to be unique, but you didn't specify a value... I'm assuming that you're using an AI column for your id. I see you're running on MySQL, so try adding the annotation @GeneratedValue(strategy=GenerationType.IDENTITY) to your id column. If that

Re: Embedding a MappedSuperClass in another MappedSuperClass

2009-06-29 Thread Rick Curtis
I'm running on trunk and I wasn't able to recreate the problem. Can you try running on trunk to see if the problem exists only on the 1.2.1 branch? If you can't get it working on trunk, please post a more thorough example of the scenario that you are running into the problem with. A full stack

Re: Is the any documentation for the methods added by enhancement?

2009-06-25 Thread Rick Curtis
David- If I remember correctly, there is little to no documentation about the methods that are added by the enhancement processing(someone please correct me if I've missed something). Previously as an academic exercise I decompiled an enhanced class to see what was added... that may be your best

Re: [Newbie] Dirty/Changed Entities

2009-06-25 Thread Rick Curtis
Roger - I'd highly recommend the Pro EJB 3 book [1]. -Rick [1] http://www.amazon.com/Pro-EJB-Java-Persistence-API/dp/1590596455 On Thu, Jun 25, 2009 at 12:07 PM, Roger roger.var...@googlemail.com wrote: On Thursday 25 June 2009 16:27:20 Daryl Stultz wrote: On Wed, Jun 24, 2009 at 4:22 PM,

Re: enhancement problem

2009-06-23 Thread Rick Curtis
László - OpenJPA does support running with unenhanced classes but it's not recommended. There are a number of known issues and there have been many discussions on disabling the support for running with unenhanced classes. I would suggest either using the -javaagent or buildtime enhancement to

Re: [Newbie] OPenJPA (1.2.1) Enhancement woes

2009-06-18 Thread Rick Curtis
I don't think many (if any) people around here have NetBeans experience... so it sounds like you're blazing a trail. I spent an hour this morning trying NB out, and I can't get things working... please let us know if/when you figure out what's going on. Is there a particular reason that you're

Re: Runtime enhancement fails

2009-06-16 Thread Rick Curtis
Udi - I wasn't able to find any changes from 1.0.1 - 1.2.0 that would affect your application, can you post some more information? Are you using buildtime or runtime enhancement? When you are enhancing, is it possible that you are setting addDefaultConstructor to false? -Rick Udi wrote:

Re: Enhancing entities fails when there is an enum field in the entity

2009-06-16 Thread Rick Curtis
This looks similar to https://issues.apache.org/jira/browse/OPENJPA-1121. -Rick -- View this message in context: http://n2.nabble.com/Enhancing-entities-fails-when-there-is-an-enum-field-in-the-entity-tp3077176p3086982.html Sent from the OpenJPA Users mailing list archive at Nabble.com.

Re: Runtime enhancement fails

2009-06-16 Thread Rick Curtis
that in some point the enhancer makes parsed.parse() for each peristence.xml. When the parsing ends, only the last parse is taking in count (within the parser._result) and that is the wrong persistence.xml in my case.. I'm pretty sure it's a bug.. On Tue, Jun 16, 2009 at 6:06 PM, Rick Curtis (via

Re: [NEWBIE] Auto generated key values

2009-06-08 Thread Rick Curtis
Roger - Can you just add a getId() method to your Entity and call that after you persist your Entity? -Rick On Mon, Jun 8, 2009 at 7:06 AM, Roger roger.var...@googlemail.com wrote: Hi I'm writing my first application using the javax.persistence framework with openJPA as it's implementation

Re: Enhancing entities: getting desperate

2009-05-20 Thread Rick Curtis
It would appear that the class org.w3c.dom.svg.SVGDocument isn't on the classpath when you run the enhancer. -Rick Prodoc wrote: Fixed now. A simple later calling of the enhance target did the trick. I'm now back at the 'NoClassDefFoundError' error. Any idea what the cause of this could

Re: Runtime Enhancement: Problems with Ant Task in Eclipse

2009-05-20 Thread Rick Curtis
:17 -0700 (PDT) Von: Rick Curtis curti...@gmail.com An: users@openjpa.apache.org Betreff: Re: Runtime Enhancement: Problems with Ant Task in Eclipse Naomi -- I've spent the better part of my morning trying to figure out what was going on and I finally have an answer for you. Please don't

Re: Runtime Enhancement: Problems with Ant Task in Eclipse

2009-05-18 Thread Rick Curtis
Is it possible that only a portion of your Entities are being enhanced by the build script? How are you invoking the ant build script? -Rick -- View this message in context: http://n2.nabble.com/Runtime-Enhancement%3A-Problems-with-Ant-Task-in-Eclipse-tp2932839p2933295.html Sent from the

Re: strange JPA Enhance stack

2009-05-18 Thread Rick Curtis
-Marc Any luck with the suggestion that David made? David Beer-2 wrote: On Sat, 16 May 2009 15:32:36 +0200 Marc Logemann l...@logemann.org wrote: Hi Marc Can't seem that it is OpenJDK 6 related as I use it here for both my development and continous build system (hudson under

Re: Runtime Enhancement: Problems with Ant Task in Eclipse

2009-05-18 Thread Rick Curtis
click on the enhance task and choosing run as - Ant build). -Naomi Original-Nachricht Datum: Mon, 18 May 2009 07:06:16 -0700 (PDT) Von: Rick Curtis curti...@gmail.com An: users@openjpa.apache.org Betreff: Re: Runtime Enhancement: Problems with Ant Task in Eclipse

Re: Runtime Enhancement: Problems with Ant Task in Eclipse

2009-05-18 Thread Rick Curtis
(PDT) Von: Rick Curtis curti...@gmail.com An: users@openjpa.apache.org Betreff: Re: Runtime Enhancement: Problems with Ant Task in Eclipse Is it possible that only a portion of your Entities are being enhanced by the build script? How are you invoking the ant build script? -Rick

Re: Enhancer problem, using ant

2009-05-18 Thread Rick Curtis
Michael - When you define your openjpac task, you're missing some of the required classes. You could change your openjpac taskdef to something like: taskdef classpath=${jpa.lib}/openjpa-1.2.1.jar;${jpa.lib}/commons-lang-2.1.jar;commons-collections-3.2.jar name=openjpac

Re: Uncommited objects and Select performance

2009-05-18 Thread Rick Curtis
Jan - Have you enhanced your Entities? What is the environment that you are running in? -Rick Janek-2 wrote: Hi, I have performance problem with queries on uncommited data. I run huge import, with commit at each 1 items. During import I make lot of selection queries (to protect

Re: Runtime Enhancement: Problems with Ant Task in Eclipse

2009-05-18 Thread Rick Curtis
it?) and I started it manually (right click on the enhance task and choosing run as - Ant build). -Naomi Original-Nachricht Datum: Mon, 18 May 2009 07:06:16 -0700 (PDT) Von: Rick Curtis curti...@gmail.com An: users@openjpa.apache.org Betreff: Re: Runtime Enhancement: Problems

Re: AutoDetach

2009-05-12 Thread Rick Curtis
Peter - What kind of problems are you having? An exception or stack trace would be very helpful. -Rick Peter Henderson wrote: ... If I don't manually call em.detach() I get lots of problems when hessian tries to serialize the object for wire transfer. ... -- View this message in

Re: Problems in setting up the work enviroment.

2009-05-05 Thread Rick Curtis
Anurag- What is the exact command that you are running, and from where? I wasn't able to recreate what you're seeing. -Rick -- View this message in context: http://n2.nabble.com/Problems-in-setting-up-the-work-enviroment.-tp2668172p2798995.html Sent from the OpenJPA Users mailing list archive

Re: Composite foreign keys with MySQL

2009-05-02 Thread Rick Curtis
Here are the known MySQL issues -- http://openjpa.apache.org/builds/latest/docs/manual/manual.html#dbsupport_mysql_issues. -Rick Martin Dirichs wrote: Hi, wondering why OpenJPA's MappingTool refused to add a foreign key constraint to the database (error message: openjpa.jdbc.Schema -

Re: connection leak after sql exception

2009-05-01 Thread Rick Curtis
Good to hear you figured out what was going on! I dug through the code/tested yesterday and didn't see anywhere that OpenJPA would leak a connection. -Rick Julian Graham wrote: Hi all, Actually after some concerted debugging and digging around in the code, it looks like this is

Re: Files in package org.apache.openjpa.kernel.jpql.

2009-04-30 Thread Rick Curtis
Will you post the entire stack for the NPE? -Rick ashishpaliwal wrote: Hi, Guys, I got my test cases run without problem. But still that example.hellojpa is giving NullPointerException. Probably I need to specify some properties somewhere. Happy that something atleast ran. Thanks a

Re: Files in package org.apache.openjpa.kernel.jpql.

2009-04-30 Thread Rick Curtis
I figured that is what you were going to say. For whatever reason, your persistence.xml file isn't being found... I'm not sure why the persistence.xml file was on my classpath, but not yours. To fix the NPE, make sure that the META-INF/persistence.xml file is in your target/classes directory.

Re: Files in package org.apache.openjpa.kernel.jpql.

2009-04-30 Thread Rick Curtis
Ashish - You are correct that the persistence.xml file isn't being copied from src/ over to target/. I must have inadvertently done that when I was writing the instructions for you previously. -Rick -- View this message in context:

Re: OpenJPA good Tut0rial

2009-04-29 Thread Rick Curtis
I assume you've already figured this out... but you'll need to configure your database connection before Dali will generate your entities. -Rick jklcom99 wrote: Hi, Have you found any tutorial or example on using Dali OpenJPA? I'm trying to generate entities from tables and it's

Re: connection leak after sql exception

2009-04-29 Thread Rick Curtis
When you fix your mapping, does the connection leak stop? Also, how are you confirming that there is a connection leak? -Rick -- View this message in context: http://n2.nabble.com/connection-leak-after-sql-exception-tp2695171p2744532.html Sent from the OpenJPA Users mailing list archive at

Re: ClassNotFoundException using PCEnhancer

2009-04-28 Thread Rick Curtis
We will need to see your build file to figure out what is going on. I assume you're running the enhancer from the command line? -Rick Chris Gage wrote: I am trying to run the enhancer in an ant script, and I am getting ClassNotFoundException for a class that is one of the compiled classes,

Re: StrictIdentityValues Issues leading to !(x instanceof Long)

2009-04-21 Thread Rick Curtis
Can you post a simple TestCase? I wasn't able to recreate the problem you're seeing. One thought I had is that maybe your DB key columns are defined as int as opposed to long or something like that? What DB are you using? -- View this message in context:

Re: StrictIdentityValues Issues leading to !(x instanceof Long)

2009-04-15 Thread Rick Curtis
Try changing your keys from primitive long to java.lang.Long. -Rick I'm having some problems with the Property 'openjpa.Compatibility' and the Value StrictIdentityValues=false.We are using IBM Websphere 6.1 incl. EJB3 Feature Pack (openJPA 1.0.4-SNAPSHOT) which by default sets this value to

Re: Eclipse Plugin for OpenJPA

2009-04-08 Thread Rick Curtis
Daryl - Did you ever hear back from the MyEclipse people? -Rick On Mon, Feb 23, 2009 at 1:31 PM, Pinaki Poddar ppod...@apache.org wrote: What is the status of this request? I just submitted it in response to your message today. I'll let you know if I hear anything. -- Daryl Stultz

Re: same @Id on mapped superclass

2009-04-02 Thread Rick Curtis
Kaayan - We're going to need a more detailed description of your scenario to figure out whats going on. -Rick Hello, I have a similar problem here. My DB is MySQL, and was running JBoss(which uses Hibernate as Persistence Provider), and with some data in DB. Now I have switched to 'tomcat

Re: same @Id on mapped superclass

2009-04-02 Thread Rick Curtis
I'm unable to recreate your failure, can you try a newer view of OpenJPA? ...I tested with 1.2 and 2.0. -Rick -- View this message in context: http://n2.nabble.com/same-%40Id-on-mapped-superclass-tp2435374p2576289.html Sent from the OpenJPA Users mailing list archive at Nabble.com.

Re: Evicting an embedded object.

2009-04-01 Thread Rick Curtis
With my vague understanding of what's going on here, it appears that you are asking the same question just in a different context. Unfortunately I don't have a good enough understanding of OpenJPA to decide how this should work. Maybe someone else wants to take a look at this one, and

Re: Evicting an embedded object.

2009-03-27 Thread Rick Curtis
Ravi - Can we get a full testcase? Thanks, Rick Hi all, I have a question regarding evicting an embedded object. When I call an evict on a persistent non-transactional object and if I call isPersistent() before and after evict then both returns true. When I do the same for an embedded

Re: Questions about classpath for OpenJPA

2009-03-26 Thread Rick Curtis
xercesImpl.jar so that adds to the mystery. - Paul On 3/23/2009 11:42 AM, Rick Curtis wrote: Paul- brIf you still are unable to figure out what's going on, feel free to zip up your simple test app and I'll take a look at it. brbr-Rick brblockquote class=quote light-black dark-border-colordiv class

Re: Questions about classpath for OpenJPA

2009-03-23 Thread Rick Curtis
Paul - I quickly looked through the javadoc for the http://java.sun.com/javase/6/docs/api/javax/xml/parsers/SAXParserFactory.html#newInstance() SAXParserFactory and I'm thinking that your problem is something specific to your environment.? I was able to run the examples on my box without adding

Re: Questions about classpath for OpenJPA

2009-03-23 Thread Rick Curtis
;javax.xml.parsers.DocumentBuilderFactoryquot; brvalue=quot;com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImplquot;/gt; brbrThere is some classloader subtlety that I don't fully understand here. brbr- Paul brbrOn 3/23/2009 8:17 AM, Rick Curtis wrote: brgt; Paul - brgt; I quickly looked

Re: Slow performance with OpenJPA when selecting from a ManyToMany relation.

2009-03-17 Thread Rick Curtis
Would it be possible to have you zip up your entire directory structure and upload that? Make sure that everything is compiled and enhanced... hopefully that will shed some more light on what is going on. -Rick Shubbis wrote: Pinaki Poddar wrote: I do not find anything obvious in the

Re: Slow performance with OpenJPA when selecting from a ManyToMany relation.

2009-03-12 Thread Rick Curtis
In addition to the manual, I wrote a post about connection pooling http://webspherepersistence.blogspot.com/2009/01/jpa-connection-pooling.html here . Pinaki Poddar wrote: Hi, I ran the Wearhouse-StorageCategory model you have posted (thank you for a clean test). Against 500 categories

Re: AW: ManagedInterfaces

2009-03-09 Thread Rick Curtis
Annette - How are you enhancing your Entities? -Rick Scherer, Annette wrote: Hi, unfortunately this approach does not lead to desired behaviour. When instantiating our implemented class with ParameterListeAtomar pc = new ParameterListeAtomarImpl(...) as suggested, we receive another

Re: Issue in Handling persistent objects across multiple persistence contexts

2009-03-09 Thread Rick Curtis
Ram - When you want to write your detached Entity back to the DB, are you using EntityManager.merge(..)? If not, I'd give that a try. -Rick Ram.sankar wrote: Hi, In my application i have a requirement that eventhough i change the values of persistent objects available in the session

Re: AW: AW: ManagedInterfaces

2009-03-09 Thread Rick Curtis
. = -Ursprüngliche Nachricht- Von: Rick Curtis [mailto:curti...@gmail.com] Gesendet: Montag, 9. März 2009 14:24 An: users@openjpa.apache.org Betreff: Re: AW: ManagedInterfaces Annette - How are you enhancing your Entities? -Rick Scherer, Annette wrote: Hi

Re: cannot apply class transformer without LoadTimeWeaver

2009-03-04 Thread Rick Curtis
IMHO, Spring should be logging the warning message, not OpenJPA. Registering a class transformer is defined explicitly by the spec and OpenJPA shouldn't be catching exceptions coming from 'Spring features' (The spec is pretty huge, so please correct me if I'm wrong). Also, I don't think that it

Re: I am new

2009-02-19 Thread Rick Curtis
Henry - I don't have experience with MS Access DB or Foxpro, but I would think your first step would be to create a simple java application that is able to successfully access your database. At that point, take those database connection properties and put them into your persistence.xml file.

Re: Mapping tool and openjpa.ConnectionFactory

2009-02-16 Thread Rick Curtis
Nick - Is the persistence.xml file in the classpath? Rick nick_j_m...@uk.ibm.com wrote: Doing something like this... Options opts = new Options(); String[] toolArgs = opts.setFromCmdLine(options); MappingTool.run(conf, toolArgs,opts); conf contains the

Re: maven-openjpa-plugin problem

2009-02-11 Thread Rick Curtis
? Or, possibly bringing into our svn? On Wed, Feb 11, 2009 at 4:08 PM, Rick Curtis curti...@gmail.com wrote: Dave - I struggled with this very problem yesterday and never did get it to work properly. I ended up using the ant-run plugin to invoke the OpenJPA enhancer task. Rick David

Running the enhancer in Maven

2009-02-09 Thread Rick Curtis
I'm putting together a set of examples that show the different ways to use enhancement and I'm wondering if there is a recommended way to run the enhancer with maven? So far I've found the http://mojo.codehaus.org/openjpa-maven-plugin/usage.html OpenJPA Maven Plugin ,

Re: Eclipse - javaagent enhancement

2009-02-02 Thread Rick Curtis
Gianny - I see in a later post that you figured out that your persistence.xml file wasn't in your classpath, but I'm wondering how this problem was manifesting itself? ie: What were the error messages that you were seeing? Also, what JDK are you running on. Thanks, Rick Gianny Damour wrote:

Re: @MappedSuperClass Cause Null Pointer Exception in Class With IdClass

2009-01-26 Thread Rick Curtis
Drifter wrote: Dear All .. i have four fieild that exist in all tables ..i want to use @MapperSuperClass .I test and I found that when there is a extended class that have IdClass PCEnhancer cuase null pointer exception. I use OpenJPA.1.2 in other cases there is no problem. in the

<    1   2   3   4   5   6