frankshu2015 / hibernate-generic-dao

Automatically exported from code.google.com/p/hibernate-generic-dao
0 stars 0 forks source link

Want to create a Subquery using TRG #82

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,
I want to create a subquery using com.trg.search. 
select * from ( select a,b,c from <<table>>
order by a)

I am not able to generate subquery

This is very urgent, Please let me know how it can be done.

Original issue reported on code.google.com by arijit.l...@gmail.com on 13 Jan 2011 at 5:53

GoogleCodeExporter commented 9 years ago
Some of the search Filters take care of certain subquery situations.

The Search object is only designed to cover certain common use cases. If you 
have a case that is not covered by the Search object, feel free to add specific 
methods to your DAOs for these cases using the Hibernate APIs directly. This is 
part of the framework design: to be able to use the built in functionality when 
possible, and also add your own code for the cases that aren't covered.

Original comment by dwolvert on 29 Jan 2011 at 11:36