Re: Does OpenJPA replace Collections?

2009-04-13 Thread Craig L Russell
Hi Paul, On Apr 13, 2009, at 8:51 PM, Paul Copeland wrote: Hi Craig - Do you mean a JIRA about the case where "OpenJPA will decide to replace the collection"? I agree it is not a bug, just a potential issue for the unwary. If OpenJPA replaces collections without some good reason, I thin

Re: Does OpenJPA replace Collections?

2009-04-13 Thread Paul Copeland
Hi Craig - Do you mean a JIRA about the case where "OpenJPA will decide to replace the collection"? I agree it is not a bug, just a potential issue for the unwary. Would it be useful to create a small example and post it here? - Paul On 4/13/2009 7:41 PM, Craig L Russell wrote: Hi Paul,

Re: Does OpenJPA replace Collections?

2009-04-13 Thread Craig L Russell
Hi Paul, On Apr 13, 2009, at 5:15 PM, Paul Copeland wrote: Craig - Thanks for the responses. This confirms that for a new Entity a collection field may be null unless the application initializes it. When you say "flushed" does that include calling EntityManager.flush() before the transac

Re: Does OpenJPA replace Collections?

2009-04-13 Thread Paul Copeland
Craig - Thanks for the responses. This confirms that for a new Entity a collection field may be null unless the application initializes it. When you say "flushed" does that include calling EntityManager.flush() before the transaction is committed? The spec says the field can be null until it

Re: Does OpenJPA replace Collections?

2009-04-13 Thread Craig L Russell
Hi Paul, On Apr 13, 2009, at 9:04 AM, Paul Copeland wrote: Are there any responses from the OpenJPA experts on my two assertions below? If the assertions seem wrong I will put together examples that demonstrate the behavior. If the assertions are correct that is not necessary. From JPA

Re: Does OpenJPA replace Collections?

2009-04-13 Thread Paul Copeland
Are there any responses from the OpenJPA experts on my two assertions below? If the assertions seem wrong I will put together examples that demonstrate the behavior. If the assertions are correct that is not necessary. From JPA Spec Section 2.1.7 - "If there are no associated entities for a

Re: persistence problem in distributed environment

2009-04-13 Thread Paul Copeland
Does the test below fail for you? It works correctly for Ravi. Can you send an example that demonstrates the problem? On 4/13/2009 8:08 AM, hmmahboobi wrote: Hi Thanks for your response, This model is a small view of our large system, Actual codes are very large and complex, so I cant send

Re: persistence problem in distributed environment

2009-04-13 Thread hmmahboobi
Hi Thanks for your response, This model is a small view of our large system, Actual codes are very large and complex, so I cant send entire model for you. Is there any considrations that help me to solve this problem? Hi, I am unable to replicate the issue. The sample code you mentioned in p