openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From SreeAsh <>
Subject How to access the TWO different OBJECTS to one entity......
Date Fri, 11 Jun 2010 04:43:49 GMT

Hi All,

    I am retriving two different table date and returing one object like

 query = "SELECT d1, d2.Description FROM dummy1 d1, Dummy2 d2 WHERE ="

I am taking Result in ObjectArray like below..
Object[] objAray = null;
Dummy dum = null;
List<Dummy> dumList = new ArrayList<Dummy>();
List l =  emQuery.getResultSet();
for(int i=0;i<list.size();i++){
     objAray  = (Object[])list.get(i);
dum  = new Dummy();
dumList .addd(dum);

can suggest me other than this method......
View this message in context:
Sent from the OpenJPA Developers mailing list archive at

View raw message