HIBERNATE数据处理问题 member是不是数据库的关键字看看,至于你那个统计的问题,你怎么用query.list()方式,用Query的uniqueResult方法就可以了亚 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 Query query = null; String hql = "delete from Guestbook where tableid=?"; Session session =SessionFactory.currentSession(); query = session.createQuery(hql) .setInteger(0, Integer.parseInt((String) temp_ID)); query.executeUpdate();这是我的Hibernate删除方法以,你试试吧!temp_ID是要删除的TABLEID值,注意类型转换 new个对象,把主键set进去再删除这个对象最好你用SPRING+HB封装的很好 jbpm 与ssh整合 无法创建processEngine---闹心中 <input type="button 和 <button 的区别 JSP的页面包含静态和动态包含的区别 ?表达式和JSP的隐式对象out的使用 如何让客户在界面上实现数据库备份与还原 struts中的validator验证框架为什么显示null? myeclipse6.5为什么注册不上 新手请教webservice问题 jbulider+weblogic+oracle_关于one to one ejb关联的问题 新手请教 如何判断jboss安装是否成功? 请教一二 在JSP中抛出的异常,很烦! servlet 基础搭建
String hql = "delete from Guestbook where tableid=?";
Session session =SessionFactory.currentSession();
query = session.createQuery(hql)
.setInteger(0, Integer.parseInt((String) temp_ID));
query.executeUpdate();
这是我的Hibernate删除方法以,你试试吧!temp_ID是要删除的TABLEID值,注意类型转换
再删除这个对象最好你用SPRING+HB封装的很好