<?xml version="1.0"?>
|
<!DOCTYPE hibernate-mapping PUBLIC
|
"-//Hibernate/Hibernate Mapping DTD 3.0//EN"
|
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
|
|
<hibernate-mapping>
|
<sql-query name="WareHouseQuery">
|
<![CDATA[
|
|
select * from bb_warehouse
|
where 1=1
|
<<and bbwh_sn like concat('%',:bbwhSn,'%')>>
|
<<and bbwt_name like concat('%',:bbwtName,'%')>>
|
<<and bbwt_contact like concat('%',:bbwtContact,'%')>>
|
<<and bbwt_state like concat('%',:bbwtState,'%')>>
|
<<and bbwt_locationid=:locationid>>
|
and ##CONDITIONS##
|
|
]]>
|
</sql-query>
|
</hibernate-mapping>
|