在input 标签中写入数字和数据库中price字段比较让后就不知道了方法返回什么 public Long selectPrice(Long price) {
// TODO Auto-generated method stub
try {
System.out.println(price);
Session session=dao.openSession();
String hql="select a.abPrice from AuctionBid  a where a.abPrice <:price";
Query query=session.createQuery(hql);
query.setLong("price", price);
??//读的是集合但是我怎莫能让他返回数字呢?
} catch (Exception e) {
// TODO: handle exception
e.printStackTrace();
}finally{
dao.closeSession();
}
return null;
} String value = request.getParameter("va");  //获取jsp数据
BidDao bd = new BidImpl();
Long lt=Long.parseLong(value);
                //把值放进selectPrice(lt)方法中
//现在有值了但是怎么和查询出来比较呢求指导Hibernate