mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
#275 - ENH: Add support for @SequenceGenerator initialValue and allocationSize
This commit is contained in:
@@ -1,17 +1,9 @@
|
||||
package com.avaje.tests.model.basic;
|
||||
|
||||
import javax.persistence.*;
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
import javax.persistence.CascadeType;
|
||||
import javax.persistence.Column;
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.FetchType;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.OneToMany;
|
||||
import javax.persistence.Table;
|
||||
|
||||
@Entity(name = "Person")
|
||||
@Table(name = "PERSONS")
|
||||
public class Person implements Serializable {
|
||||
@@ -28,6 +20,7 @@ public class Person implements Serializable {
|
||||
|
||||
@Id
|
||||
@GeneratedValue(strategy = javax.persistence.GenerationType.AUTO)
|
||||
@SequenceGenerator(name="PERSONS_SEQ", initialValue = 1000, allocationSize = 40)
|
||||
@Column(name = "ID", unique = true, nullable = false)
|
||||
public Long getId() {
|
||||
return id;
|
||||
|
||||
Reference in New Issue
Block a user