Issue Type: Bug Bug
Affects Versions: 4.2.0.CR1, 4.1.9, 4.1.8, 4.1.7
Assignee: Unassigned
Attachments: getTenantIdentifier.patch
Components: core
Created: 06/Feb/13 9:21 AM
Description:

When you call Session.getTenantIdentifier() on a Session without active transaction, HibernateException is thrown with message "getTenantIdentifier is not valid without active transaction".

It causes problems when transaction is finished, and it is needed to perform session validation in multi-tenant environment.

As an attachment, I am providing a patch.

Environment: Hibernate ORM 4.1.7, MySQL 5.5
Project: Hibernate ORM
Labels: hibernate core multi-tenancy
Priority: Minor Minor
Reporter: Zdenek Bzoch
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira