[hibernate-issues] [Hibernate-JIRA] Resolved: (HHH-2041) Update with unaltered natural-id fails
Gail Badner (JIRA)
noreply at atlassian.com
Tue May 11 18:48:25 EDT 2010
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-2041?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Gail Badner resolved HHH-2041.
------------------------------
Assignee: Gail Badner
Resolution: Duplicate
> Update with unaltered natural-id fails
> --------------------------------------
>
> Key: HHH-2041
> URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-2041
> Project: Hibernate Core
> Issue Type: Bug
> Components: core
> Affects Versions: 3.1.3
> Environment: hibernate-3.1.3, mysql-4.1.12
> Reporter: Jim Pease
> Assignee: Gail Badner
>
> This may be a duplicate of http://opensource.atlassian.com/projects/hibernate/browse/HHH-1574.
> Getting following error:
> caused by: org.hibernate.HibernateException: immutable natural identifier of an instance of edu.syr.lsb.gmt.impl.LinkImpl was altered
> at org.hibernate.event.def.DefaultFlushEntityEventListener.checkNaturalId(DefaultFlushEntityEventListener.java:80)
> at org.hibernate.event.def.DefaultFlushEntityEventListener.getValues(DefaultFlushEntityEventListener.java:155)
> at org.hibernate.event.def.DefaultFlushEntityEventListener.onFlushEntity(DefaultFlushEntityEventListener.java:106)
> at org.hibernate.event.def.AbstractFlushingEventListener.flushEntities(AbstractFlushingEventListener.java:195)
> at org.hibernate.event.def.AbstractFlushingEventListener.flushEverythingToExecutions(AbstractFlushingEventListener.java:76)
> at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:26)
> ...
> This is occurring without modifications to the natural identifier, which is mapped as follows:
> <natural-id>
> <property name="activityRef" column="ACTIVITY_REF" length="255" not-null="true" />
> <many-to-one name="goal" class="GoalImpl" column="GOAL_ID" not-null="true" cascade="none" />
> </natural-id>
--
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
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the hibernate-issues
mailing list