We're updating the issue view to help you get more done. 

Session.merge() doesn't work on @Entity with mulitiple @Id

Description

Session.merge() doesn't work on @Entity with mulitiple @Id, one of which is a @OneToMany. The same works fine if @EmbeddedId is used.

Attached maven project for reproducing the issue.

  • Run com.bug.Service

  • Parent1-->Child1 uses @EmbeddedId. It is working fine.

  • The same when modeled using @Id (Parent2-->Child2) doesn't work.

Environment

None

Status

Assignee

Unassigned

Reporter

Kiran Govindaiah

Fix versions

None

Labels

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

4.2.6

Priority

Major