[
http://opensource.atlassian.com/projects/hibernate/browse/HHH-2716?page=c...
]
sp commented on HHH-2716:
-------------------------
I have the same issue. I have entities using auto generated ids and I need to replicate
them to multiple database without altering the already generated ids. MySQL support
inserting values with defined id for auto increment columns so it would make sense to at
least have the option in the hibernate dilect. Can we have some feedback for this issue,
it have been opened a while ago and I would like to know if there have any plan to fix it
or if I have to find another solution.
Session.replicate failure with identity column
----------------------------------------------
Key: HHH-2716
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-2716
Project: Hibernate Core
Issue Type: Bug
Components: core
Affects Versions: 3.2.2
Environment: Java 1.5, MySQL 5.0.27 and Hibernate Annotations 3.2.1.GA
Reporter: Yves Martin
I'm trying to use replicate:
http://www.hibernate.org/hib_docs/reference/en/html/objectstate.html#obje...
The column "@version" is replicated properly (same value in second db) but the
column "@Id @GeneratedValue" contains a new value from the db2 sequence.
In fact the insert statement generated by the replicate method does not include the
"id" column.
--
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....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira