Issue Type: Bug Bug
Affects Versions: 4.1.7
Assignee: Unassigned
Attachments: MultiTenancyIdTable.patch
Components: core
Created: 09/Sep/12 8:09 PM
Description:

If an Entity has a generated Id by a table, the Id is increased per SessionFactory and not per tenant.

So saving an Entity for tentant A increases also the ID for tentant B. I fear that even the wrong sequence table is updated.

See the attached testcase.

Environment: trunk
Project: Hibernate ORM
Labels: multi-tenancy id sequence
Priority: Major Major
Reporter: Andreas Berger
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