New delete method on org.hibernate.impl.SessionImpl
---------------------------------------------------
Key: HHH-1896
URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-1896
Project: Hibernate3
Type: New Feature
Reporter: Steven
Priority: Minor
There is no way to use a named query to perform deletions. SessionImpl.delete() only accepts hql strings for queries. There should be a delete method that accepts either a query ex: SessionImpl.delete(SessionImpl.getNamedQuery("stored.query.name")) or the name of a stored procedure SessionImpl.delete("stored.query.name").
Abstraction by use of named queries is a good goal as it keeps the queries out of the DAO logic.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
|