public double getMaxBid(AuctionProduct pri) {
// TODO Auto-generated method stub
sql="select max(ab_price) from auction_bid where ap_prod_id=?";
Session s=super.getSession();
String max="";
try {
Query query=s.createSQLQuery(sql);
query.setInteger(0, pri.getApProdId());
Object o=query.uniqueResult();
if(o!=null){
max=o.toString();
return Double.parseDouble(max);
}
// TODO Auto-generated method stub
sql="select max(ab_price) from auction_bid where ap_prod_id=?";
Session s=super.getSession();
String max="";
try {
Query query=s.createSQLQuery(sql);
query.setInteger(0, pri.getApProdId());
Object o=query.uniqueResult();
if(o!=null){
max=o.toString();
return Double.parseDouble(max);
}