Steve Ebersole (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *commented* on HHH-1661 (
https://hibernate.atlassian.net/browse/HHH-1661?atlOrigin=eyJpIjoiYTcxMzA...
)
Re: merge of a deleted object results in a insert? (
https://hibernate.atlassian.net/browse/HHH-1661?atlOrigin=eyJpIjoiYTcxMzA...
)
Perhaps I am misunderstanding here, but after the first call above to
session.getTransaction().commit(); the entity is not detached. Detached indicates there is
a corresponding row in the database, which is not the case here. What am I missing?
If X is a removed entity instance, an IllegalArgumentException will be
thrown by the
merge operation (or the transaction commit will fail).
That is talking about the removed status, which is true before the flush+commit. After the
commit, the entity is gone.
(
https://hibernate.atlassian.net/browse/HHH-1661#add-comment?atlOrigin=eyJ...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-1661#add-comment?atlOrigin=eyJ...
)
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#100232- sha1:33a7c72 )