mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
#894 - ENH: Add support for @OneToMany orphanRemoval = true (which is the same as @PrivateOwned)
This commit is contained in:
@@ -1,7 +1,5 @@
|
||||
package com.avaje.tests.model.basic;
|
||||
|
||||
import com.avaje.ebean.annotation.PrivateOwned;
|
||||
|
||||
import javax.persistence.CascadeType;
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.GeneratedValue;
|
||||
@@ -29,8 +27,7 @@ public class TSMaster {
|
||||
|
||||
boolean active;
|
||||
|
||||
@OneToMany(cascade = CascadeType.ALL, mappedBy = "master")
|
||||
@PrivateOwned
|
||||
@OneToMany(cascade = CascadeType.ALL, mappedBy = "master", orphanRemoval = true)
|
||||
List<TSDetail> details;
|
||||
|
||||
public Integer getId() {
|
||||
|
||||
Reference in New Issue
Block a user