Re:Exception in thread "main" java.lang.StackOverflowError

2007-10-04 Thread ricardo . leoneti
Sorry, Here the source code. Please help me. Teste.java import java.util.Iterator; import java.util.List; import javax.persistence.EntityManager; import javax.persistence.EntityManagerFactory; import javax.persistence.

Re: Cloning Calendar proxies

2007-10-04 Thread Kevin Sutter
Hi Craig, On 10/4/07, Craig L Russell <[EMAIL PROTECTED]> wrote: > > Hi Kevin, > > On Oct 4, 2007, at 1:00 PM, Kevin Sutter wrote: > > > Hi, > > It seems that the IBM JDK is cloning a Calendar object when > > performing the > > .equals() method. > > Why is that? :-) Who knows? I'm not privy to

Re: em.refresh() semantics

2007-10-04 Thread Kevin Sutter
Pinaki, No caching is turned on. The only cache that I am aware of that is turned on by default is the Query Compilation Cache. All other caches need to be explicitly configured. I have not configured for any caches. I am running with the standard "test" persistence unit definition in our persi

RE: em.refresh() semantics

2007-10-04 Thread Pinaki Poddar
Is L2 cache configured for this experiment? If datacache is active, then that the state may be delivered from there itself without hitting the database. Does the test behave differently, if you set a) datacahe off or b) evict from both L1 and L2 cache before refresh? To ensure that em.evi

Re: Cloning Calendar proxies

2007-10-04 Thread Craig L Russell
Hi Kevin, On Oct 4, 2007, at 1:00 PM, Kevin Sutter wrote: Hi, It seems that the IBM JDK is cloning a Calendar object when performing the .equals() method. Why is that? If I call .equals() on one of our Calendar proxy objects, the underlying implementation seems to be cloning the object b

em.refresh() semantics

2007-10-04 Thread Kevin Sutter
Hi, >From reading the spec and the Pro EJB 3 book, I was under the impression that a call to em.refresh() would refresh from the database regardless. No questions asked. But, I am finding that we don't work that way. I made a simple update to our simple PersistenceTest using the AllFieldTypes (n

RE: Cloning Calendar proxies

2007-10-04 Thread Pinaki Poddar
One of the reasons of these objects being proxied is that their change can mark the owning persistent entity as dirty. Pinaki Poddar 972.834.2865 >-Original Message- >From: Evan Ireland [mailto:[EMAIL PROTECTED] >Sent: Thursday, October 04, 2007 3:29 PM >To: dev@openjpa.apache.org >S

RE: Cloning Calendar proxies

2007-10-04 Thread Evan Ireland
Just curious, why are Calendar objects being proxied in the first place? > -Original Message- > From: Kevin Sutter [mailto:[EMAIL PROTECTED] > Sent: Friday, 5 October 2007 9:01 a.m. > To: dev@openjpa.apache.org > Subject: Cloning Calendar proxies > > Hi, > It seems that the IBM JDK is c

Cloning Calendar proxies

2007-10-04 Thread Kevin Sutter
Hi, It seems that the IBM JDK is cloning a Calendar object when performing the .equals() method. If I call .equals() on one of our Calendar proxy objects, the underlying implementation seems to be cloning the object before determining the equality. While using this cloned object, one of the sette

Re: Lazy loading not working.

2007-10-04 Thread rgarret
Thanks for all the help, everything is going smoothly now. Like I said, the latest snapshot took care of the OneToOne relationship and it makes sense that enums are just basic. Thanks again! Reece Kevin Sutter wrote: > > On 10/4/07, Patrick Linskey <[EMAIL PROTECTED]> wrote: >> >> >> I believe

Re: Refreshing the site

2007-10-04 Thread Marc Prud'hommeaux
Craig- Unfortunately, it seems that all of the pages that embed dynamic content (like RSS feeds) need to be "touched" to force an update to the content. The cumbersome process is as follows: 1. Go to http://cwiki.apache.org/confluence/display/openjpa/Mailing% 20Lists 2. Log in and edit th

Refreshing the site

2007-10-04 Thread Craig L Russell
I notice that the mailing lists page of our site http:// openjpa.apache.org/mailing-lists.html was last updated in August. Is the update supposed to be manual or automagic? Craig Craig Russell Architect, Sun Java Enterprise System http://java.sun.com/products/jdo 408 276-5638 mailto:[EMAIL PR

Re: Lazy loading not working.

2007-10-04 Thread Kevin Sutter
On 10/4/07, Patrick Linskey <[EMAIL PROTECTED]> wrote: > > > I believe that you can leave out the @Basic annotation for enums if > you'd prefer, as well. That is correct. @Basic is optional for enums. Kevin -Patrick > > On 10/4/07, rgarret <[EMAIL PROTECTED]> wrote: > > > > Alex, > > > > I am

Re: wrong sql for tables relation

2007-10-04 Thread Patrick Linskey
This is a bug; see OPENJPA-392. I just checked in a fix (but no test cases); it should be in the next 1.1.0 snapshot. -Patrick On 10/4/07, AlexD. <[EMAIL PROTECTED]> wrote: > > Hi, > > Patrick Linskey-2 wrote: > > > > If you remove the columnDefinition, does the problem go away? I'm not > > sugg

[jira] Updated: (OPENJPA-392) Some columnDefinition annotation properties incorrectly used as column name instead of type

2007-10-04 Thread Patrick Linskey (JIRA)
[ https://issues.apache.org/jira/browse/OPENJPA-392?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Patrick Linskey updated OPENJPA-392: Fix Version/s: (was: 1.0.1) > Some columnDefinition annotation properties incorrectly

[jira] Created: (OPENJPA-392) Some columnDefinition annotation properties incorrectly used as column name instead of type

2007-10-04 Thread Patrick Linskey (JIRA)
Some columnDefinition annotation properties incorrectly used as column name instead of type --- Key: OPENJPA-392 URL: https://issues.apache.org/jira/browse/OPENJPA-392

[jira] Commented: (OPENJPA-347) Performance Issue with Lazy Loaded Foreign Keys

2007-10-04 Thread Patrick Linskey (JIRA)
[ https://issues.apache.org/jira/browse/OPENJPA-347?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12532439 ] Patrick Linskey commented on OPENJPA-347: - > OpenJPA loads the foreign key fields eagerly regardless of the

Re: Lazy loading not working.

2007-10-04 Thread Patrick Linskey
Hi, enum field types should be mapped as @Basic; @ManyToOne is for a back-pointer on a one-to-many relationship (i.e., a collection of entities). So, it should only be used for persistent types, not simple types like enums. I believe that you can leave out the @Basic annotation for enums if you'd

Re: wrong sql for tables relation

2007-10-04 Thread AlexD.
Hi, Patrick Linskey-2 wrote: > > If you remove the columnDefinition, does the problem go away? I'm not > suggesting that as a solution, but the answer will help debug the > problem. > Yes, the problem goes away if I delete the columnDefinition. best regards, alex -- View this message in cont

Re: Lazy loading not working.

2007-10-04 Thread rgarret
Alex, I am enhancing all of my model classes at build time. I found a fixed bug that pertains to my issue: http://issues.apache.org/jira/browse/OPENJPA-347. After upgrading to the latest snapshot my OneToOne relationship behaved properly but the ManyToOne still eagerly fetched. I changed from Man

Re: wrong sql for tables relation

2007-10-04 Thread Patrick Linskey
Hi, > As you see the columnDefinition is taken instead of column name (the SQL > will be correct if I delete columnDefinition for this column). > > Has somebody some ideas how to fix SQL without removing of columnDefinition? If you remove the columnDefinition, does the problem go away? I'm not su