mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
#1392 - MergeOptionsBuilder setClientGeneratedIds() ... should not be required if the Id property does not have Identity/Sequence generator assigned
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user