[appengine-java] Re: Is it possible to implement Open EntityManager in View to avoid JDODetachedFieldAccessException?

2009-11-30 Thread Felipe Cypriano
Thanks,

Using these properties solve the problem.

On 28 nov, 08:09, datanucleus andy_jeffer...@yahoo.com wrote:
  I'm using Spring therefore I tried to configure the
  OpenEntityManagerInViewInterceptor, if this works as it's supposed to
  I shouldn't get JDODetachedFieldAccessException anymore, but I still
  get it.

 And what state are the objects in when you access the field ?
 detached ? and what PersistenceContext is used ?
 As perhttp://www.datanucleus.org/products/accessplatform_2_0/jpa/object_lif...
 DataNucleus 1.x supports Transaction out of the box (whereas
 DataNucleus 2.x supports both).
 You could easily use the persistence properties
 datanucleus.DetachAllOnCommit = false
 datanucleus.DetachOnClose=true
 if you wanted Extended.

--

You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.




[appengine-java] Re: Is it possible to implement Open EntityManager in View to avoid JDODetachedFieldAccessException?

2009-11-28 Thread datanucleus
 I'm using Spring therefore I tried to configure the
 OpenEntityManagerInViewInterceptor, if this works as it's supposed to
 I shouldn't get JDODetachedFieldAccessException anymore, but I still
 get it.

And what state are the objects in when you access the field ?
detached ? and what PersistenceContext is used ?
As per 
http://www.datanucleus.org/products/accessplatform_2_0/jpa/object_lifecycle.html
DataNucleus 1.x supports Transaction out of the box (whereas
DataNucleus 2.x supports both).
You could easily use the persistence properties
datanucleus.DetachAllOnCommit = false
datanucleus.DetachOnClose=true
if you wanted Extended.

--

You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.