Java 类org.hibernate.annotations.GenericGenerator 实例源码

项目:Hibernate_Component_Mapping_Using_DAO_Using_Maven    文件:person.java   
@Id
@Column(name="PID",length=15)
@Type(type="int")
@GenericGenerator(name="gen",strategy="increment")
@GeneratedValue(generator="gen")
    public int getPid() {
        return pid;
    }
项目:jeesupport    文件:TabB.java   
/** 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;
    }
项目:Spring-MVC-Blueprints    文件:Login.java   
@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;
}
项目:lams    文件:AnnotationBinder.java   
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 );
        }
    }
}
项目:uckefu    文件:Fans.java   
@Id
@Column(length = 32)
@GeneratedValue(generator = "system-uuid")
@GenericGenerator(name = "system-uuid", strategy = "uuid")  
public String getId() {
    return id;
}
项目:uckefu    文件:Message.java   
@Id
@Column(length = 32)
@GeneratedValue(generator = "system-uuid")
@GenericGenerator(name = "system-uuid", strategy = "uuid")  
public String getId() {
    return id;
}
项目:uckefu    文件:Topic.java   
/**
 * @return the id
 */
@Id
@Column(length = 32)
@GeneratedValue(generator = "system-uuid")
@GenericGenerator(name = "system-uuid", strategy = "uuid")  
public String getId() {
    return id;
}
项目:uckefu    文件:TopicView.java   
@Id
@Column(length = 32)
@GeneratedValue(generator = "system-uuid")
@GenericGenerator(name = "system-uuid", strategy = "uuid")  
public String getId() {
    return id;
}
项目:uckefu    文件:TopicComment.java   
@Id
@Column(length = 32)
@GeneratedValue(generator = "system-uuid")
@GenericGenerator(name = "system-uuid", strategy = "uuid")  
public String getId() {
    return id;
}
项目:uckefu    文件:User.java   
/**
 * @return the id
 */
@Id
@Column(length = 32)
@GeneratedValue(generator = "system-uuid")
@GenericGenerator(name = "system-uuid", strategy = "uuid")  
public String getId() {
    return id;
}
项目:tianti    文件:MysqlSequenceIdEntity.java   
@Id
@Column(length = 32, nullable = true)
@GenericGenerator(name = "sys_uuid", strategy = "uuid")
@GeneratedValue(generator = "sys_uuid")
public String getId() {
    return id;
}
项目:hibernateMaster    文件:UUIDDomain.java   
@Id
@GenericGenerator(name="generator",strategy="assigned")
@GeneratedValue(generator="generator")
@Column(length=32)
public String getId() {
    return id;
}
项目:hibernateMaster    文件:Power.java   
@Id
@GenericGenerator(name="generator",strategy="assigned")
@GeneratedValue(generator="generator")
@Column(length=32)
public String getName() {
    return name;
}
项目:hibernateMaster    文件:Role.java   
@Id
@GenericGenerator(name="generator",strategy="assigned")
@GeneratedValue(generator="generator")
@Column(length=32)
public String getName() {
    return name;
}
项目:d2g-api    文件:BaseIdentifiable.java   
@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;
}
项目:DWSurvey    文件:IdEntity.java   
@Id
//  @GeneratedValue(strategy = GenerationType.AUTO)
    @GeneratedValue(generator = "system-uuid")
    @GenericGenerator(name = "system-uuid", strategy = "uuid")
    @Column(length = 55)
    public String getId() {
        return id;
    }
项目:jeesupport    文件:TabA.java   
@GenericGenerator ( name = "generator" , strategy = "identity" )
@Id
@GeneratedValue ( generator = "generator" )

@Column ( name = "id" , unique = true , nullable = false )

public Integer getId() {
    return this.id;
}
项目:jeesupport    文件:TabA.java   
@GenericGenerator( name = "generator" , strategy = "identity" )
@Id
@GeneratedValue( generator = "generator" )

@Column( name = "id" , unique = true , nullable = false )

public Integer getId() {
    return this.id;
}
项目:niubi-job    文件:AbstractEntity.java   
/**
    * 默认使用36位uuid作为主键
    *
    * @return id
    */
@Id
@Column(length = 36, nullable = true)
@GeneratedValue(generator = "uuid")
@GenericGenerator(name = "uuid", strategy = "uuid2")
public String getId() {
    return id;
}
项目:tephra    文件:ModelSupport.java   
@Jsonable
@Column(name = ID)
@Id
@GeneratedValue(generator = UUID)
@GenericGenerator(name = UUID, strategy = UUID)
@Override
public String getId() {
    return id;
}
项目:Spring-MVC-Blueprints    文件:Login.java   
@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;
}
项目:Spring-MVC-Blueprints    文件:Login.java   
@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;
}
项目:Spring-MVC-Blueprints    文件:InvoicedProducts.java   
@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;
}
项目:Spring-MVC-Blueprints    文件:Tblgpa.java   
@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;
}
项目:Spring-MVC-Blueprints    文件:Tblgpa.java   
@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;
}
项目:Spring-MVC-Blueprints    文件:Login.java   
@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;
}
项目:NewsBotIRC    文件:DBEntry.java   
@Id
@GeneratedValue(generator="increment")
@GenericGenerator(name="increment", strategy = "increment")
public Long getId()
{
    return id;
}
项目:celerio-angular-quickstart    文件:UseCase2.java   
@Override
@Column(name = "ID", length = 32)
@GeneratedValue(generator = "strategy-uuid")
@GenericGenerator(name = "strategy-uuid", strategy = "uuid")
@Id
public String getId() {
    return id;
}
项目:wenku    文件:BaseEntity.java   
@Id
@GeneratedValue(generator = "uuid") //指定生成器名称
@GenericGenerator(name = "uuid", strategy = "org.hibernate.id.UUIDGenerator") //生成器名称,uuid生成类  
@Column(length = 64, nullable = false)
public String getId() {
    return id;
}
项目:engerek    文件:RLookupTableRow.java   
@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;
}
项目:engerek    文件:RTrigger.java   
@Id
@GeneratedValue(generator = "ContainerIdGenerator")
@GenericGenerator(name = "ContainerIdGenerator", strategy = "com.evolveum.midpoint.repo.sql.util.ContainerIdGenerator")
@Column(name = "id")
@IdQueryProperty
public Integer getId() {
    return id;
}
项目:engerek    文件:RAccessCertificationCase.java   
@Id
@GeneratedValue(generator = "ContainerIdGenerator")
@GenericGenerator(name = "ContainerIdGenerator", strategy = "com.evolveum.midpoint.repo.sql.util.ContainerIdGenerator")
@Column(name = "id")
@IdQueryProperty
public Integer getId() {
    return id;
}
项目:engerek    文件:RAccessCertificationWorkItem.java   
@Id
@GeneratedValue(generator = "ContainerIdGenerator")
@GenericGenerator(name = "ContainerIdGenerator", strategy = "com.evolveum.midpoint.repo.sql.util.ContainerIdGenerator")
@Column(name = "id")
@IdQueryProperty
public Integer getId() {
    return id;
}
项目:engerek    文件:ROperationExecution.java   
@Id
@GeneratedValue(generator = "ContainerIdGenerator")
@GenericGenerator(name = "ContainerIdGenerator", strategy = "com.evolveum.midpoint.repo.sql.util.ContainerIdGenerator")
@Column(name = "id")
@IdQueryProperty
public Integer getId() {
    return id;
}
项目:engerek    文件:RExclusion.java   
@Id
@GeneratedValue(generator = "ContainerIdGenerator")
@GenericGenerator(name = "ContainerIdGenerator", strategy = "com.evolveum.midpoint.repo.sql.util.ContainerIdGenerator")
@Column(name = "id")
@IdQueryProperty
public Integer getId() {
    return id;
}
项目:dpCms    文件:Menu.java   
@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;
}
项目:CoCoTemp    文件:News.java   
/**
 * Gets id.
 *
 * @return the id
 */
@GenericGenerator(name = "increment", strategy = "increment")
@GeneratedValue(generator = "increment")
@Id
@Column(name = "id", length = 16)
public long getId()
{
    return id;
}
项目:CoCoTemp    文件:Device.java   
@GeneratedValue(generator = "uuid2")
@GenericGenerator(name = "uuid2", strategy = "uuid2")
@Id
@Column(name = "id", length = 16)
public UUID getId() {
    return id;
}
项目:CoCoTemp    文件:Data.java   
/**
 * Gets id.
 *
 * @return the id
 */
@GeneratedValue(generator = "uuid2")
@GenericGenerator(name = "uuid2", strategy = "uuid2")
@Id
@Column(name = "id", length = 16)
public UUID getId()
{
    return id;
}
项目:CoCoTemp    文件:Site.java   
/**
 * Gets id.
 *
 * @return the id
 */
@GeneratedValue(generator = "uuid2")
@GenericGenerator(name = "uuid2", strategy = "uuid2")
@Id
@Column(name = "id", length = 16)
public UUID getId()
{
    return id;
}