Omar aloraini (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=5d21a95...
) *commented* on HHH-16759 (
https://hibernate.atlassian.net/browse/HHH-16759?atlOrigin=eyJpIjoiZWY3ZG...
)
Re: Merge fails when entity has an Embedded Java record (
https://hibernate.atlassian.net/browse/HHH-16759?atlOrigin=eyJpIjoiZWY3ZG...
)
Although the test passes, I’m still facing the issue in my own project. I’m not able to
reproduce in the test template project. The only difference that I can think of is MySQL.
The code is going through a a different path and trying to set the final field:
Caused by: org.hibernate.PropertyAccessException: Could not set value of type
[java.lang.String] : com.example.demo.Name.name (setter)
at app//org.hibernate.property.access.spi.SetterFieldImpl.set(SetterFieldImpl.java:86)
at
app//org.hibernate.metamodel.mapping.internal.AbstractEmbeddableMapping.setValues(AbstractEmbeddableMapping.java:112)
at app//org.hibernate.type.ComponentType.setPropertyValues(ComponentType.java:450)
at app//org.hibernate.type.TypeHelper.replaceAssociations(TypeHelper.java:224)
at
app//org.hibernate.event.internal.DefaultMergeEventListener.copyValues(DefaultMergeEventListener.java:529)
at
app//org.hibernate.event.internal.DefaultMergeEventListener.entityIsTransient(DefaultMergeEventListener.java:240)
at
app//org.hibernate.event.internal.DefaultMergeEventListener.entityIsDetached(DefaultMergeEventListener.java:345)
at
app//org.hibernate.event.internal.DefaultMergeEventListener.merge(DefaultMergeEventListener.java:149)
at
app//org.hibernate.event.internal.DefaultMergeEventListener.doMerge(DefaultMergeEventListener.java:142)
at
app//org.hibernate.event.internal.DefaultMergeEventListener.onMerge(DefaultMergeEventListener.java:126)
at
app//org.hibernate.event.internal.DefaultMergeEventListener.onMerge(DefaultMergeEventListener.java:80)
The difference between this error and the original is replaceAssociations even though the
entity has no Association!
(
https://hibernate.atlassian.net/browse/HHH-16759#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-16759#add-comment?atlOrigin=ey...
)
Get Jira notifications on your phone! Download the Jira Cloud app for Android (
https://play.google.com/store/apps/details?id=com.atlassian.android.jira....
) or iOS (
https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=Em...
) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100227- sha1:5147d46 )