#1392 - MergeOptionsBuilder setClientGeneratedIds() ... should not be required if the Id property does not have Identity/Sequence generator assigned

This commit is contained in:
rob bygrave
2018-05-29 15:24:32 +12:00
parent 21e87e12cb
commit 9a096e272e
9 changed files with 69 additions and 17 deletions
@@ -9,6 +9,7 @@ import io.ebean.annotation.Index;
import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
@@ -25,7 +26,7 @@ import java.util.List;
@Cache(naturalKey = "email")
public class Contact {
@Id
@Id @GeneratedValue
int id;
@Size(max=127)