Results 1 to 2 of 2
Thread: hql query
- 03-17-2011, 07:06 AM #1
Member
- Join Date
- Jun 2010
- Posts
- 25
- Rep Power
- 0
hql query
String hqlQuery="from PreferentialTariffDTO pref where pref.hsCodeList.prefId=pref.prefId and pref.cpcCode='"+cpcCode+"' and pref.hsCodeList.hsCode='"+hsCode+"'";
List<PreferentialTariffDTO> listpref=getListWithHQL(hqlQuery);
is above hql query is right or wrong?
there PreferentialTariffDTO is the parent table pojo class.
and hsCodeList is the child table PrefHSDetailDTO.
now i need to pick the records which satisfy the above conditions.Thanks&Regards,
Muralikrishna K
- 03-17-2011, 07:25 AM #2
Senior Member
- Join Date
- Jun 2008
- Posts
- 2,366
- Rep Power
- 7
Similar Threads
-
Sql Query
By Nomad in forum JDBCReplies: 16Last Post: 02-20-2009, 01:58 PM -
I need help with a query.
By Daredemo in forum JDBCReplies: 1Last Post: 08-13-2008, 05:16 AM -
Help in Query
By geeta_ravikanti in forum JDBCReplies: 0Last Post: 03-31-2008, 01:16 PM -
Using sql:query tag
By Java Tip in forum Java TipReplies: 0Last Post: 01-15-2008, 03:13 PM -
Using sql:query tag
By Java Tip in forum Java TipReplies: 0Last Post: 01-14-2008, 09:31 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks