Hi,
  I like what you are doing and believe that it is a predominant use case for 
multi-tier for OpenJPA/JPA based web applications. 

  Please consider writing up a small, self-contained sample (preferably without 
the application server scaffolding) to demonstrate your solution to integrate 
JAXB marshaling with constrained serialization support available via dynamic 
fetch plans of OpenJPA.

  Such samples can be made available with OpenJPA samples distribution. This 
will allow other community members to benefit from your contributions. Kevin 
had offered a project in Google Summer of Code [1] for similar purpose of 
enriching the corpus of samples that ship with OpenJPA. You can touch base with 
him to explore further (also there is $$$ for a GSoC project:).

[1] http://wiki.apache.org/general/SummerOfCode2009#openjpa-project


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




-----
Pinaki Poddar                      http://ppoddar.blogspot.com/
                                      
http://www.linkedin.com/in/pinakipoddar
OpenJPA PMC Member/Committer
JPA Expert Group Member
-- 
View this message in context: 
http://n2.nabble.com/%27Masking%27-fields-in-an-Entity-tp2545263p2563797.html
Sent from the OpenJPA Users mailing list archive at Nabble.com.

Reply via email to