From: <leg...@at...> - 2003-09-18 03:10:00
|
Message: A new issue has been created in JIRA. --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-344 Here is an overview of the issue: --------------------------------------------------------------------- Key: HB-344 Summary: Delete by id method Type: New Feature Status: Unassigned Priority: Minor Project: Hibernate2 Components: core Versions: 2.0.3 Assignee: Reporter: Paul Austin Created: Wed, 17 Sep 2003 10:09 PM Updated: Wed, 17 Sep 2003 10:09 PM Environment: Windows 2000 Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2-b28) Java HotSpot(TM) Client VM (build 1.4.2-b28, mixed mode) Description: The current delete methods on a session support deleting by passing an object to delete or using a query. A useful addition would be to have a method that can delete using the id for the object in a similar way to load. The current way to do this is with code such as the following. session.delete( " from eg.Person pers where pers.id = ?", new Integer(4), new IntegerType() ); A simpler form would be. session.delete(Person.class, new Integer(4)); This method would have the same signature below. public void delete(Class theClass, Serializable id) throws HibernateException --------------------------------------------------------------------- JIRA INFORMATION: 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 If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira |