this is a snippet from my logs
Code:
Hibernate: select this_.request_id as request1_19_0_, this_.date_created as date2_19_0_, this_.division as division19_0_, this_.product_group as product4_19_0_, this_.sale_reporting_code as sale5_19_0_, this_.product_type as product6_19_0_, this_.territory as territory19_0_, this_.presentation as presenta8_19_0_, this_.unitId as unitId19_0_, this_.code as code19_0_, this_.name as name19_0_, this_.unit_typeid as unit12_19_0_, this_.countryTypeId as country13_19_0_, this_.country as country19_0_, this_.collectionId as collect15_19_0_, this_.col_code as col16_19_0_, this_.col_name as col17_19_0_, this_.col_componenttypeid as col18_19_0_, this_.cstateId as cstateId19_0_, this_.cs_code as cs20_19_0_, this_.cs_name as cs21_19_0_, this_.cs_shortcode as cs22_19_0_ from HIBERNATEREQUESTOBJECT2 this_ where lower(this_.cs_name) like ? and 1=1
2008-02-28 19:39:51,948 DEBUG [org.hibernate.jdbc.AbstractBatcher] - <about to open ResultSet (open ResultSets: 0, globally: 0)>
2008-02-28 19:39:51,948 DEBUG [org.hibernate.loader.Loader] - <result row: EntityKey[net.taxstream.transferpricing.domain.HibernateRequestObject#104]>
2008-02-28 19:39:51,948 DEBUG [org.hibernate.loader.Loader] - <result row: EntityKey[net.taxstream.transferpricing.domain.HibernateRequestObject#121]>
I still can't see the value being passed but the query is executing and a result set is being returned. I've tried Date, Timestamp and Calendar but I stiil can't use Restrictions.eq to compare whether 2 dates are equal. Anybody with any suggestions, does my date format matter? This is all I am missing to make this dynamic sql query work.