[JPA] Double insert with @OneToMany without any Cascade options specified

Description

A parent and child with bidirectional mapping with mappedby and join column.

Creates duplicate in Parent table since i have uniqueness in name it fails with violation.

HHH000412: Hibernate ORM core version 5.4.18.Final
Hibernate Commons Annotations {5.1.0.Final}

Environment

None

Activity

Show:
Nathan Xu
August 27, 2020, 1:22 PM

Hi! The issue seems intriguing. Could you provide more details?

anand188
August 28, 2020, 12:00 PM

Sorry it was my mistake i was intuded to create one since i saw same issue in stackoverflow instead checking my code properly.
Apologies for the same.

Nathan Xu
August 28, 2020, 12:49 PM

so we can close this ticket then?

Assignee

Unassigned

Reporter

anand188

Fix versions

None

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Priority

Major
Configure