openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pinaki Poddar <ppod...@apache.org>
Subject Re: How to get selective columns only
Date Mon, 21 Dec 2009 18:29:53 GMT

Hi,
  FetchPlan is the right solution fof your requirement. FetchPlan should
work for this case and has been used by many users so far for more complex
fetch requirements.
  May be there are some slight mistakes in how the fetch plans are
configured/used?
 

Himadri wrote:
> 
> Hi ,
> 
> I have a requirement to get only selective colums from an Entity and all
> ..ie I want something like 
> Select o.name , o.dec from Employee o 
> instead of 
> Select 0 from Employee o.
> 
> How can I achive this using openJpa  ? I though FetchPlan is the answer ,
> where in FetchAttributes will have the columns to be fetched , but it
> doesnt work. OpenJPA gets all the attributes of the columns not the only
> selected one?
> 


-----
Pinaki 
-- 
View this message in context: http://n2.nabble.com/How-to-get-selective-columns-only-tp4197516p4199830.html
Sent from the OpenJPA Users mailing list archive at Nabble.com.

Mime
View raw message