Re: SynchronizeMappings settings

2009-05-22 Thread Naomi-san
Thanks for your reply! Unfortunately this does not work either. I also tried the variants OpenJpaTables and OpenjpaTables and always get the following error message: Exception in thread "main" org.apache.openjpa.persistence.PersistenceException: action == OpenJPATables=true [...] Caused by: ja

SynchronizeMappings settings

2009-05-21 Thread Naomi-san
Hello everybody, I want to configure the openjpa.jdbc.SynchronizeMappings property in my persistence.xml in a way that it... 1. ... drops all tables in the database schema (drop whole schema) 2. ... recreates the schema 3. ... builds tables for all entity classes My Intention is, also to clear

Re: Runtime Enhancement: Problems with Ant Task in Eclipse

2009-05-20 Thread Naomi-san
about this problem some more this morning and since you're > enhancing your Entities at build time, there isn't any reason to have a > Spring weaver configured. I did some digging around and found a forum post > regarding this very issue [1]. > > -Rick > > [1] http:

Re: Runtime Enhancement: Problems with Ant Task in Eclipse

2009-05-20 Thread Naomi-san
Hi Rick, thank you so much for your time you spent! Aww, I knew, that there was a time I did not have that enhance-message, but I thought I just imagined it ;) I already used the InstrumentationLoadTimeWeaver some time before (that is why it was commented out in db.xml), but got warning message

Re: Runtime Enhancement: Problems with Ant Task in Eclipse

2009-05-18 Thread Naomi-san
Hi, so far, I just worked with one binary folder and did not create jars from the project, too. I checked the whole workspace and the eclipse classpath but did not find any double classes or imports. I even removed all classes from the binary folder and rebuilt them. I debugged my application

Re: Runtime Enhancement: Problems with Ant Task in Eclipse

2009-05-18 Thread Naomi-san
Hey David, thank you for the tip! I checked one of my entities with javap: 1. After a clean and manually invoking the enhance task 2. After execution of my application Both times the class has pc* methods, so it seems that they are enhanced and not overwritten by Eclipse. So why the error mess

Re: Runtime Enhancement: Problems with Ant Task in Eclipse

2009-05-18 Thread Naomi-san
vauge > understanding is that would be used to clean up resources that Eclipse > wouldn't have cleaned up as part of a normal clean. In the blog posting, > it > shows to invoke the enhancer script on a manual and auto build, have you > tried that yet? > > -Rick > >

Re: Runtime Enhancement: Problems with Ant Task in Eclipse

2009-05-18 Thread Naomi-san
Hi Rick, I also had that thought, but the message lists all of my entities, so I think they all have not been enhanced. I oriented on the following tutorial for creating and invoking the build script: http://webspherepersistence.blogspot.com/2009/04/openjpa-enhancement-eclipse-builder.html I e

Re: Runtime Enhancement: Problems with Ant Task in Eclipse

2009-05-18 Thread Naomi-san
Hello Donald, thank you very much for your answer. I already heard of that plug-in and would use it in case of doubt. But because of some security restrictions in my company also including Eclipse plug-ins, I would prefer an Ant solution to be able to hand-off the project without forcing ever

Runtime Enhancement: Problems with Ant Task in Eclipse

2009-05-18 Thread Naomi-san
Hello everybody, I have got another problem. This time it is a problem with runtime enhancement. I am enhancing my classes with the following ant script started from Eclipse:

Re: Creating nodes with parents

2009-05-15 Thread Naomi-san
Hi, best, you have a look at the documentation: http://people.apache.org/~mprudhom/openjpa/site/openjpa-project/manual/ref_guide_pc_enhance.html OpenJPA classes need to be enhanced to provide lazy fetching. Else there will always been used eager fetching, which could be the cause of your proble

Re: Creating nodes with parents

2009-05-15 Thread Naomi-san
Hi, as far as I know, TopLink has a maximum fetching depth of 2 by default and OpenJPA has an infinite fetching depth, which could lead to recursions in the worst case if you use eager fetching. I am wondering why this also happens with lazy fetching - did you forget to enhance your classes? Y