mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
Test case for #83 - Bug: Stateless update cascading to OneToOne or
ManyToOne incorrectly tries to INSERT rather than UPDATE
This commit is contained in:
@@ -2,6 +2,7 @@ package com.avaje.tests.model.basic;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
import javax.persistence.CascadeType;
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.ManyToOne;
|
||||
@@ -14,7 +15,7 @@ public class UUTwo {
|
||||
|
||||
String name;
|
||||
|
||||
@ManyToOne
|
||||
@ManyToOne(cascade=CascadeType.PERSIST)
|
||||
UUOne master;
|
||||
|
||||
public UUID getId() {
|
||||
|
||||
Reference in New Issue
Block a user