Re: support for identifying relations in JPA/OpenJPA

2008-07-30 Thread Gopalakrishnan U
Well...looks like the attachment didn't work! Test case attached again here: http://n2.nabble.com/file/n661801/openjpatest.zip openjpatest.zip The problem I am facing looks like the open JIRA https://issues.apache.org/jira/browse/OPENJPA-291. The symptoms are same. Gopal -- View this messag

Re: support for identifying relations in JPA/OpenJPA

2008-07-30 Thread Gopalakrishnan U
Hi Pinaki, That was valuable information, Thanks! I tried to implement identifying relations with three entities X, Y and Z having a relation X --< Y --< Z ( --< = Identifying relation in craw feet notation). But persisting of Z is failing with the following exception: org.apache.openjpa

Re: Embedded class problems

2008-07-30 Thread Pinaki Poddar
Hi, 1. Is this using runtime or build-time enhancement? 2. May be related to this JIRA issue? [1] http://issues.apache.org/jira/browse/OPENJPA-659 3. The code snippet below runs through fields of an instance to its dirty embedded instance's dirty fields. Works as expected o

open connections causing strange behaviour

2008-07-30 Thread devu213
Hi, I have a very peculiar problem. I'm using JPA/openJPA in conjunction with dbUnit for unit testing. The sequence of events of course is Initialize db using dbunit API -> Do insert using openJPA -> do asserts using dbunit API. In order to have a decent performance level over what would be a s

Re: NullPointerException in DataCache

2008-07-30 Thread Pinaki Poddar
Hi, It was a bug. It has been fixed with revision 633739. Apparently related to handling instances of type that is not L2 cached. -- View this message in context: http://n2.nabble.com/NullPointerException-in-DataCache-tp532523p661498.html Sent from the OpenJPA Users mailing list archive at Nab

Re: at org.apache.openjpa.kernel.StateManagerImpl.setExtraFieldData(StateManagerImpl.java:718)

2008-07-30 Thread Pinaki Poddar
Hi, > is there any interest from commiters if I can provide a test case which > demonstrates and reproduces this? Yes. Please post a reproducer test case. -- View this message in context: http://n2.nabble.com/at-org.apache.openjpa.kernel.StateManagerImpl.setExtraFieldData%28StateManagerImpl.j

Re: ????

2008-07-30 Thread Pinaki Poddar
Hi, Do a Class.forName("com.mysql.jdbc.Driver") in the very first line of whatever test program to see if your environment can find the driver OpenJPA needs. -- View this message in context: http://n2.nabble.com/%3Copenjpa-1.1.0-r422266%3A657916-nonfatal-general-error%3E--tp642040p661385.h

Re: regarding configuration of the distributed cache

2008-07-30 Thread Pinaki Poddar
Hi, 1. You do need to configure both sender and receiver side. But there is no extra configuration other than 'openjpa.RemoteCommitProvider' settings. 2. Please check that the port where sender sends matches the port where the receiver listens to. 3. Please post persistence.xml used by both

Re: Fetch Group questions

2008-07-30 Thread Pinaki Poddar
Hi, > 1. Is the "default" fetch group ALWAYS active? Almost ALWAYS. Unless you really, seriously do not want it, force removal by FetchPlan.removeFetchGroup(FetchGroup.NAME_DEFAULT); after clearFetchGroup(), it will still load the fields of default fetch group after resetFetchGroup(), it will

Re: support for identifying relations in JPA/OpenJPA

2008-07-30 Thread Pinaki Poddar
Hi, > Does OpenJPA support identifying relationship (a.k.a compound identity > relations) between two entities? Yes. OpenJPA supports relation as identity. JPA 2.0 will standardize on this feature as 'derived identity'. This feature is described and demonstrated in OpenJPA manual [1]. A JIRA issu

Re: Fetch Group questions

2008-07-30 Thread Andy Schlaikjer
Hi there, Michael Vorburger wrote: 1. Is the "default" fetch group ALWAYS active? I was trying to load e.g. only one field from an Entity in a query, but noticed that even if I do fp.resetFetchGroups(); and fp.clearFields(); and then a fp.addField(MyEntity.class, "name"); STILL always includes a

support for identifying relations in JPA/OpenJPA

2008-07-30 Thread Gopalakrishnan U
Hello, Does OpenJPA support identifying relationship (a.k.a compound identity relations) between two entities? I checked the OpenJPA user documentation and did searches in the internet which didn't gave any good answers. So I tried to test it out my self following the bottom-up approach. I

regarding configuration of the distributed cache

2008-07-30 Thread Rasmus Klærke
hi I have setup the distrubuted cache using the RemoteCommitProvider on both my test mashines using the TCP approach (i have only set the RemoteCommitProvider property in the persistence.xml file - setting the address value to the other mashine). I can see network traffic occuring when i do a commi

Re: ????

2008-07-30 Thread Anish
Hey Ignacio, Thats what i thought the problem was but i am sure its in the classpath i mean i added the jar file in the classpath by editing /.bashrc export CLASSPATH = .:/usr/share/java/mysql.jar isnt this how u are meant to do it oh i forgot to add... i am using the eclipse ide for it

Re: ????

2008-07-30 Thread Ignacio Andreu
Hi Anish, As far as I can read in the stack trace Caused by: *java.lang.ClassNotFoundException: com.mysql.jdbc.Driver* The JDBC driver isn't in your classpath. Regards, On Wed, Jul 30, 2008 at 12:03 PM, Anish <[EMAIL PROTECTED]> wrote: > > Hey i have made a little test program using openjpa..

????

2008-07-30 Thread Anish
Hey i have made a little test program using openjpa... this seemed to work when i did it in windows but somehow doesent work in linux... i am basically trying to test openjpa with mysql... the code is as follows: Main.java /* * Licensed to the Apache Software Foundation (ASF) under one * or mo

Re: OpenJPA 1.1.0 and Exception: The result set is closed

2008-07-30 Thread jeank
http://openjpa.apache.org/docs/latest/manual/manual.html#ref_guide_dbsetup_retain -- View this message in context: http://n2.nabble.com/OpenJPA-1.1.0-and-Exception%3A-The-result-set-is-closed-tp533628p641318.html Sent from the OpenJPA Users mailing list archive at Nabble.com.

support for identifying relations in JPA/OpenJPA

2008-07-30 Thread Gopalakrishnan U
Hello, Does OpenJPA support identifying relationship (a.k.a compound identity relations) between two entities? I checked the OpenJPA user documentation and did searches in the internet which didn't gave any good answers. So I tried to test it out my self following the bottom-up approach. I

Caching large result set problem (Glassfish memory usage grow)

2008-07-30 Thread jeank
(OpenJPA 1.1, Glassfish, mysql) Hi, my problem is: I have a stateful bean with "openjpa.ConnectionRetainMode" - "always" for handle large relult sets, and with fetch configuration: Query q = em.createQuery("select m from Account m "); kq = OpenJPAPersistence.cas