QBE « Search « JPA Q&A





1. Search date range using Date QBC and QBE    forum.hibernate.org

I have a search page that ultimately uses Hibernate's Query by criteria and query by example. However, the search is supposed to allow for a range, a start and end date, if you will. So my question is two fold. How does one use a Date in QBC/QBE and how does one express a range using a between ala' for Y, ...

3. Search using QBE    forum.hibernate.org

Hi, I m new to Hibernate .... need some help regarding QBE. I m having a class A containing type class B and class C. In databse table A is having one-to-one relationship with B and C. I am trying to retrieve the list in the following manner.... Example example = Example.create(a).ignoreCase().excludeProperty( "isPlateMovable").excludeProperty("isMotorvehContactAddressUsed") .excludeProperty("isEvnReceiverAddressUsed").excludeProperty( "isPlateReceiverAddressUsed").excludeProperty("targetShipping"); return (Evn) session.createCriteria(A.class).add(example).createCriteria( "b").add( Example.create(a.getB()).excludeProperty( "passengerTransportation").excludeProperty("hiredVehicle") ...