Thanks for the hint.

The setting you suggested caused deployment errors for me (I am
deploying my app to Geronimo 2.1.3 which uses OpenJPA 1.0.3).

But, it looks like this setting will work for me:

<property name="openjpa.DetachState"
value="fetch-groups(AccessUnloaded=true)" />

The only strange thing is that my unloaded booleans show up in XML as
being false (rather than not showing up at all).  So I'll just have to
make sure I include them in my fetch group.

Thanks for all your help,

Jay

Pinaki Poddar wrote:
>> If I set the DetachState to something else, would I be able to get it
>> to simply return blanks/nulls for the unloaded fields?
> 
> Try :
> <property name="openjpa.DetachState" 
> value="fetch-groups(DetachStateField=false)"/>
> 
> 
> 
> -----
> Pinaki Poddar                      http://ppoddar.blogspot.com/
>                                       
> http://www.linkedin.com/in/pinakipoddar
> OpenJPA PMC Member/Committer
> JPA Expert Group Member

Reply via email to