From: <leg...@at...> - 2003-06-27 08:01:51
|
The following comment has been added to this issue: Author: Chris Webb Created: Fri, 27 Jun 2003 3:00 AM Body: Gavin, just saw your response in the discussion thread. I'm wondering if you removed/closed the original issue that I raised because I couldn't find it (HB-151). I thought it must have been lost so I've re-entered it as you can see. I understand your comment regarding that the method should not be added to the interface because a JTA transaction may not be associated with just one Session. This enhancement would only be good for JDBC transactions which are bound to one session. How about adding the getSession method to the JDBCTransaction class so then I can at least retrieve the Session by casting. If the transaction is not an instance of JDBCTransaction my code will throw some sort of exception. --------------------------------------------------------------------- View the issue: http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-150 Here is an overview of the issue: --------------------------------------------------------------------- Key: HB-150 Summary: Add getSession method to Transaction interface Type: New Feature Status: Unassigned Priority: Major Project: Hibernate2 Components: core Versions: 2.0rc2 2.1 2.0 final 2.0.1 2.0.2 Assignee: Reporter: Chris Webb Created: Wed, 25 Jun 2003 11:45 PM Updated: Wed, 25 Jun 2003 11:45 PM Description: It should be possible to retrieve the Session associated with a Transaction from a Transaction instance. This would assist some data access implentations by exposing the relationship in a convenient and logical manner. --------------------------------------------------------------------- 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 |