可以用2个sql语句删除,
String bhql = "delete from Biding where biddingId=:id";
String bphql = "delete from BidingParticipate where biddingId=:id";
Session session = this.getSession();
Query bq = session.createQuery(bhql);
Query bpq = session.createQuery(bphql);
bq.setParameter("id", id);
bpq.setParameter("id", id);
bq.executeUpdate();
bpq.executeUpdate();