@Id @Column(name="PID",length=15) @Type(type="int") @GenericGenerator(name="gen",strategy="increment") @GeneratedValue(generator="gen") public int getPid() { return pid; }
/** full constructor */ // Property accessors @GenericGenerator( name = "generator" , strategy = "identity" ) @Id @GeneratedValue( generator = "generator" ) @Column( name = "id" , unique = true , nullable = false ) public Integer getId() { return this.id; }
@GenericGenerator(name = "generator", strategy = "foreign", parameters = @Parameter(name = "property", value = "user")) @Id @GeneratedValue(generator = "generator") @Column(name = "id", unique = true, nullable = false) public int getId() { return this.id; }
private static void bindGenericGenerators(XAnnotatedElement annotatedElement, Mappings mappings) { GenericGenerator defAnn = annotatedElement.getAnnotation( GenericGenerator.class ); GenericGenerators defsAnn = annotatedElement.getAnnotation( GenericGenerators.class ); if ( defAnn != null ) { bindGenericGenerator( defAnn, mappings ); } if ( defsAnn != null ) { for ( GenericGenerator def : defsAnn.value() ) { bindGenericGenerator( def, mappings ); } } }
@Id @Column(length = 32) @GeneratedValue(generator = "system-uuid") @GenericGenerator(name = "system-uuid", strategy = "uuid") public String getId() { return id; }
/** * @return the id */ @Id @Column(length = 32) @GeneratedValue(generator = "system-uuid") @GenericGenerator(name = "system-uuid", strategy = "uuid") public String getId() { return id; }
@Id @Column(length = 32, nullable = true) @GenericGenerator(name = "sys_uuid", strategy = "uuid") @GeneratedValue(generator = "sys_uuid") public String getId() { return id; }
@Id @GenericGenerator(name="generator",strategy="assigned") @GeneratedValue(generator="generator") @Column(length=32) public String getId() { return id; }
@Id @GenericGenerator(name="generator",strategy="assigned") @GeneratedValue(generator="generator") @Column(length=32) public String getName() { return name; }
@Id @GeneratedValue(generator = "uuid") @GenericGenerator(name = "uuid", strategy = "org.hibernate.id.UUIDGenerator") @Column(name = "id", unique = true, updatable = false, nullable = false) @Override public UUID getId() { return id; }
@Id // @GeneratedValue(strategy = GenerationType.AUTO) @GeneratedValue(generator = "system-uuid") @GenericGenerator(name = "system-uuid", strategy = "uuid") @Column(length = 55) public String getId() { return id; }
@GenericGenerator ( name = "generator" , strategy = "identity" ) @Id @GeneratedValue ( generator = "generator" ) @Column ( name = "id" , unique = true , nullable = false ) public Integer getId() { return this.id; }
@GenericGenerator( name = "generator" , strategy = "identity" ) @Id @GeneratedValue( generator = "generator" ) @Column( name = "id" , unique = true , nullable = false ) public Integer getId() { return this.id; }
/** * 默认使用36位uuid作为主键 * * @return id */ @Id @Column(length = 36, nullable = true) @GeneratedValue(generator = "uuid") @GenericGenerator(name = "uuid", strategy = "uuid2") public String getId() { return id; }
@Jsonable @Column(name = ID) @Id @GeneratedValue(generator = UUID) @GenericGenerator(name = UUID, strategy = UUID) @Override public String getId() { return id; }
@GenericGenerator(name = "generator", strategy = "foreign", parameters = @Parameter(name = "property", value = "customerAccount")) @Id @GeneratedValue(generator = "generator") @Column(name = "id", unique = true, nullable = false) public Integer getId() { return this.id; }
@GenericGenerator(name = "generator", strategy = "foreign", parameters = @Parameter(name = "property", value = "invoice")) @Id @GeneratedValue(generator = "generator") @Column(name = "id", unique = true, nullable = false) public Integer getId() { return this.id; }
@GenericGenerator(name = "generator", strategy = "foreign", parameters = @Parameter(name = "property", value = "tblstudents")) @Id @GeneratedValue(generator = "generator") @Column(name = "studentID", unique = true, nullable = false) public int getStudentId() { return this.studentId; }
@GenericGenerator(name = "generator", strategy = "foreign", parameters = @Parameter(name = "property", value = "customerInfo")) @Id @GeneratedValue(generator = "generator") @Column(name = "id", unique = true, nullable = false) public int getId() { return this.id; }
@Id @GeneratedValue(generator="increment") @GenericGenerator(name="increment", strategy = "increment") public Long getId() { return id; }
@Override @Column(name = "ID", length = 32) @GeneratedValue(generator = "strategy-uuid") @GenericGenerator(name = "strategy-uuid", strategy = "uuid") @Id public String getId() { return id; }
@Id @GeneratedValue(generator = "uuid") //指定生成器名称 @GenericGenerator(name = "uuid", strategy = "org.hibernate.id.UUIDGenerator") //生成器名称,uuid生成类 @Column(length = 64, nullable = false) public String getId() { return id; }
@Id @GeneratedValue(generator = "ContainerIdGenerator") @GenericGenerator(name = "ContainerIdGenerator", strategy = "com.evolveum.midpoint.repo.sql.util.ContainerIdGenerator") @Column(name = ID_COLUMN_NAME) @IdQueryProperty public Integer getId() { return id; }
@Id @GeneratedValue(generator = "ContainerIdGenerator") @GenericGenerator(name = "ContainerIdGenerator", strategy = "com.evolveum.midpoint.repo.sql.util.ContainerIdGenerator") @Column(name = "id") @IdQueryProperty public Integer getId() { return id; }
@Id @Column(name = "ID", unique = true, nullable = false, length = 19) @GeneratedValue(strategy = GenerationType.TABLE, generator = "table") @GenericGenerator(name = "table", strategy = "org.hibernate.id.MultipleHiLoPerTableGenerator", parameters = { @Parameter(name = "max_lo", value = "5") })//增长级别为5,可根据并发级别适当调整 public Long getId() { return this.id; }
/** * Gets id. * * @return the id */ @GenericGenerator(name = "increment", strategy = "increment") @GeneratedValue(generator = "increment") @Id @Column(name = "id", length = 16) public long getId() { return id; }
@GeneratedValue(generator = "uuid2") @GenericGenerator(name = "uuid2", strategy = "uuid2") @Id @Column(name = "id", length = 16) public UUID getId() { return id; }
/** * Gets id. * * @return the id */ @GeneratedValue(generator = "uuid2") @GenericGenerator(name = "uuid2", strategy = "uuid2") @Id @Column(name = "id", length = 16) public UUID getId() { return id; }