Re: [VOTE] OpenJPA 2.0.0-beta2 release candidate

2010-03-01 Thread Kevin Sutter
Hi Jean-Baptiste, It was just pointed out to me that OPENJPA-1020 was resolved in trunk back on Jan 04, 2010 by Fay Wang. I missed that commit message on the JIRA. So, this problem has been resolved in trunk and should be part of both the 2.0.0-beta and 2.0.0-beta2. Are you indicating that this

Re: Bidirectional relation problem using web service (Cycle exception)

2010-03-01 Thread JayaPrakash
Hi, We had a similar issue, what we have done is. For a given example A, B and C objects, for bidirectional relationship, we set Object B inside A and A back to B to support the bidirectional relationship. Since this becomes a cycle you end up getting that error. To avoid that, all we di

Insert/Update sequence in an Object tree

2010-03-01 Thread JayaPrakash
Hi, I would like to know, in an object tree that is sent for saving to the Database using OpenJPA, Is the parent first inserted/update or the child? For example in a tree of A B and C, A is the parent Object of B and B is the parent Object of C. In this scenario, would the A object be inse

Re: [VOTE] OpenJPA 2.0.0-beta2 release candidate

2010-03-01 Thread catalina wei
+1 Catalina On Mon, Mar 1, 2010 at 9:21 AM, Kevin Sutter wrote: > Hi Jean-Baptiste, > Sorry if I mis-represented the approach, but I never promised to resolve > this JIRA Issue before committing the Beta2 release. I said that we would > take a look at the referenced JIRA and try to work with t

Re: [VOTE] OpenJPA 2.0.0-beta2 release candidate

2010-03-01 Thread Kevin Sutter
Hi Jean-Baptiste, Sorry if I mis-represented the approach, but I never promised to resolve this JIRA Issue before committing the Beta2 release. I said that we would take a look at the referenced JIRA and try to work with the patch originator to see if we could resolve this before we do a final 2.0

Re: [VOTE] OpenJPA 2.0.0-beta2 release candidate

2010-03-01 Thread Jean-Baptiste BRIAUD -- Novlog
Hi, I've seen tge beta2 is out but the bug is still not corrected according to issue tracker. http://issues.apache.org/jira/browse/OPENJPA-1020 Apparently, a patch is already there. I'm not sure what to do and if someone did something. Any news ? This bug make PersistentCollection not working

RE: JPA and streams

2010-03-01 Thread Hiran Chaudhuri
Meanwhile I tried OpenJPA 2.0.0 beta - and the very same code executes just fine. I cannot tell what made the difference, but then there are quite some modifications between the releases... Hiran PS: I have been told that @LOB should not be used in conjunction with @Persistent. However when I

RE: JPA and streams

2010-03-01 Thread Andrew Thompson
Did you try @Lob? http://openjpa.apache.org/builds/latest/docs/manual/ref_guide_mapping_jpa.html http://www.ibmpressbooks.com/articles/article.asp?p=1192350&seqNum=4 I struggled with this also about a year ago when I was trying to refactor some legacy code and eventually gave up due to an immine

JPA and streams

2010-03-01 Thread Hiran Chaudhuri
Hi there. I'm trying to get OpenJPA running with Inputstreams. Somehow I always get Exceptions using OpenJPA 1.2.1, Oracle JDBC driver 10.2.0.4.0 and Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production. The entity in question contains one field maked as: @Persistent

Problem using generated id in equals() / hashCode() / toString()

2010-03-01 Thread Luis Fernando Planella Gonzalez
Hi. I'm using OpenJPA 1.2.2 with OpenEJB 3.1.2, and facing an odd problem... I have a BaseEntity class, which all other entities extend, with the following definition: @MappedSuperclass public abstract class BaseEntity { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private

Re: ApplicationIdTool generated idclass and tokenizer inconsistency

2010-03-01 Thread Krzysztof
Hello, Should I open an issue for this? Best regards, Krzysztof -- View this message in context: http://n2.nabble.com/ApplicationIdTool-generated-idclass-and-tokenizer-inconsistency-tp4639509p4653214.html Sent from the OpenJPA Users mailing list archive at Nabble.com.