Here, we have new tag and exist tag in tags, no matter what we specify cascade ( a: ALL; b: PERSIST, MERGE; c: PERSIST, d: MERGE) , we get error error anyway either when we create or update
It only work when we remove Cascade, then, we HAVE TO search in DB and build new Tag in DB first.
Affects: 2.2.4 (Moore SR4)
The text was updated successfully, but these errors were encountered:
If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed.
Closing due to lack of requested feedback. If you would like us to look at this issue, please provide the requested information and we will re-open the issue.
ywuliu opened DATAJPA-1684 and commented
Column like:
@ManyToMany
(fetch = FetchType.EAGER,cascade = {
CascadeType.PERSIST,
CascadeType.MERGE
}
)
@JoinTable
(name = "post_tags",joinColumns = {
@JoinColumn
(name = "post_id") },inverseJoinColumns = {
@JoinColumn
(name = "tag_id") })private Set<Tag> tags = new HashSet<>();
Here, we have new tag and exist tag in tags, no matter what we specify cascade ( a: ALL; b: PERSIST, MERGE; c: PERSIST, d: MERGE) , we get error error anyway either when we create or update
It only work when we remove Cascade, then, we HAVE TO search in DB and build new Tag in DB first.
Affects: 2.2.4 (Moore SR4)
The text was updated successfully, but these errors were encountered: