OpenJPA 1.2.0 Bug on FetchType.EAGER

2008-09-19 Thread egoosen
I'm experiencing a strange bug in 1.2.0, on an eager loaded one to many relationship. The first time I run the code, openJPA retrieves the parent entity and eager fetches the CORRECT child entities. The second time around, it fetches the parent entity and fetches the INCORRECT child entities

Re: OpenJPA 1.2.0 Bug on FetchType.EAGER

2008-09-19 Thread Kevin Sutter
Egoosen2, One new feature that went into 1.2.0 was the ability to cache some of the generated sql on common queries. Previous to this change, every query or findBy operation required the same sql to be generated over and over again. It may be possible that the caching is picking up the wrong sql

Re: OpenJPA 1.2.0 Bug on FetchType.EAGER

2008-09-19 Thread Kevin Sutter
Cool (and not so cool). This indicates that we have a potential problem with our sql query caching support. Do you have access to our JIRA system? If so, please go ahead and open a JIRA Issue for this problem. If not, I (or another developer) can open one for you. We need to figure this one

Re: OpenJPA 1.2.0 Bug on FetchType.EAGER

2008-09-19 Thread Fay Wang
Hi, I can reproduce this problem. Please open a JIRA for this problem. Thanks! -Fay --- On Fri, 9/19/08, egoosen [EMAIL PROTECTED] wrote: From: egoosen [EMAIL PROTECTED] Subject: OpenJPA 1.2.0 Bug on FetchType.EAGER To: users@openjpa.apache.org Date: Friday, September 19, 2008, 12:49

Re: OpenJPA 1.2.0 Bug on FetchType.EAGER

2008-09-19 Thread Fay Wang
Sorry, I spoke too soon. My test case actually runs fine. The following listings are my TblAmdCtl.java, TblAmdDes.java and TestQuerySQLCache. Could you attach your test case to reproduce this problem in the JIRA? Thanks! (1) TblAmdCtl.java @Entity public class TblAmdctl {