我尝试了,在hbm文件中加入
|
但是如何调用呢?
另外,我按照refernece上说的想要执行以下语句:
|
但是报错:
|
那么怎么使用session.delete()来批量删除呢?
|
另外,我按照refernece上说的想要执行以下语句:
|
|
那么怎么使用session.delete()来批量删除呢?
hibernate3的删除:
Query q = session.createQuery(sql);
q.executeUpdate();
executeUpdate
public int executeUpdate()
throws HibernateExceptionExecute the update or delete statement.
The semantics are compliant with the ejb3 Query.executeUpdate() method.
Returns:
The number of entities updated or deleted.
Throws:
HibernateException
讨论hibernate3.0的问题
欢迎大家来http://www.jsports.org
|
执行的时候仍然报错.
java.lang.NullPointerException
at org.hibernate.hql.antlr.HqlSqlBaseWalker.path(HqlSqlBaseWalker.java:2193)...
改成"from Phone"也不行.
能否给出一个例子?
另外,我想使用