类javax.persistence.GenerationType源码实例Demo

下面列出了怎么用javax.persistence.GenerationType的API类实例代码及写法,或者点击链接到github查看源代码。

@Id
@Column(name = "INSTRUCTOR_ID", unique = true, nullable = false)
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "SEQ_INSTRUCTOR_ID")
@SequenceGenerator(name = "SEQ_INSTRUCTOR_ID", sequenceName = "SEQ_INSTRUCTOR_ID", allocationSize=1, initialValue=1)
public Integer getId() {
	return this.id;
}
 
源代码2 项目: ankush   文件: Log.java
/**
 * Gets the id.
 * 
 * @return the id
 */
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
@JsonIgnore
public Long getId() {
	return id;
}
 
源代码3 项目: cia   文件: CommitteeProposalContainer.java
/**
* Gets the hjid.
*
* @return the hjid
*/
  @Id
  @Column(name = "HJID")
  @GeneratedValue(strategy = GenerationType.AUTO)
  public Long getHjid() {
      return hjid;
  }
 
源代码4 项目: cia   文件: DocumentStatusContainer.java
/**
* Gets the hjid.
*
* @return the hjid
*/
  @Id
  @Column(name = "HJID")
  @GeneratedValue(strategy = GenerationType.AUTO)
  public Long getHjid() {
      return hjid;
  }
 
源代码5 项目: cia   文件: PersonContainerElement.java
/**
* Gets the hjid.
*
* @return the hjid
*/
  @Id
  @Column(name = "HJID")
  @GeneratedValue(strategy = GenerationType.AUTO)
  public Long getHjid() {
      return hjid;
  }
 
源代码6 项目: sample-java-spring-genericdao   文件: Classes.java
@Id
@Column(name = "CLASSES_ID", unique = true, nullable = false)
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "SEQ_CLASSES_ID")
@SequenceGenerator(name = "SEQ_CLASSES_ID", sequenceName = "SEQ_CLASSES_ID", allocationSize=1, initialValue=1)
public Integer getId() {
	return this.id;
}
 
/**
* Gets the hjid.
*
* @return the hjid
*/
  @Id
  @Column(name = "HJID")
  @GeneratedValue(strategy = GenerationType.AUTO)
  public Long getHjid() {
      return hjid;
  }
 
源代码8 项目: tianti   文件: OracleLongEntity.java
@Id
@SequenceGenerator(name = "ID_SEQ")
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "ID_SEQ")
@Column(name = "ID", nullable = false)
public Long getId() {
	return id;
}
 
源代码9 项目: cia   文件: CountryElement.java
/**
* Gets the hjid.
*
* @return the hjid
*/
  @Id
  @Column(name = "HJID")
  @GeneratedValue(strategy = GenerationType.AUTO)
  public Long getHjid() {
      return hjid;
  }
 
源代码10 项目: cia   文件: DocumentDetailData.java
/**
* Gets the hjid.
*
* @return the hjid
*/
  @Id
  @Column(name = "HJID")
  @GeneratedValue(strategy = GenerationType.AUTO)
  public Long getHjid() {
      return hjid;
  }
 
@Id
@Column(name = "order_item_id")
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Override
public long getOrderItemId() {
    return super.getOrderItemId();
}
 
@Id
@Column(name = "order_id")
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Override
public long getOrderId() {
    return super.getOrderId();
}
 
源代码13 项目: 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;
}
 
源代码14 项目: cia   文件: SwedenElectionTypeContainerElement.java
/**
* Gets the hjid.
*
* @return the hjid
*/
  @Id
  @Column(name = "HJID")
  @GeneratedValue(strategy = GenerationType.AUTO)
  public Long getHjid() {
      return hjid;
  }
 
源代码15 项目: lams   文件: BinderHelper.java
@SuppressWarnings("ConstantConditions")
private static GenerationType interpretGenerationType(GeneratedValue generatedValueAnn) {
	if ( generatedValueAnn.strategy() == null ) {
		return GenerationType.AUTO;
	}

	return generatedValueAnn.strategy();
}
 
源代码16 项目: jeewx   文件: WebOfficeEntity.java
/**
 *方法: 取得java.lang.Integer
 *@return: java.lang.Integer  id
 */

@Id
@GeneratedValue(strategy = GenerationType.AUTO)
@Column(name ="ID",nullable=false,length=32)
public java.lang.Integer getId(){
	return this.id;
}
 
源代码17 项目: uyuni   文件: EnvironmentTarget.java
/**
 * Gets the id.
 *
 * @return id
 */
@Id
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "content_prj_env_target_seq")
@SequenceGenerator(name = "content_prj_env_target_seq", sequenceName = "suse_ct_env_tgt_seq", allocationSize = 1)
public Long getId() {
    return id;
}
 
源代码18 项目: cia   文件: Topics.java
/**
* Gets the hjid.
*
* @return the hjid
*/
  @Id
  @Column(name = "HJID")
  @GeneratedValue(strategy = GenerationType.AUTO)
  public Long getHjid() {
      return hjid;
  }
 
源代码19 项目: cia   文件: SwedenElectionType.java
/**
* Gets the hjid.
*
* @return the hjid
*/
  @Id
  @Column(name = "HJID")
  @GeneratedValue(strategy = GenerationType.AUTO)
  public Long getHjid() {
      return hjid;
  }
 
源代码20 项目: uyuni   文件: ContentProject.java
/**
 * Gets the id.
 *
 * @return id
 */
@Id
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "content_project_seq")
@SequenceGenerator(name = "content_project_seq", sequenceName = "suse_ct_project_seq", allocationSize = 1)
public Long getId() {
    return id;
}
 
源代码21 项目: uyuni   文件: NotificationMessage.java
/**
 * @return Returns the id.
 */
@Id
@Column(name = "id")
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "nmsg_seq")
@SequenceGenerator(name = "nmsg_seq", sequenceName = "suse_notif_message_id_seq",
        allocationSize = 1)
public Long getId() {
    return id;
}
 
源代码22 项目: uyuni   文件: ImageInfo.java
/**
 * @return the id
 */
@Id
@Column(name = "id")
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "imginfo_seq")
@SequenceGenerator(name = "imginfo_seq", sequenceName = "suse_imginfo_imgid_seq",
                   allocationSize = 1)
public Long getId() {
    return id;
}
 
源代码23 项目: cia   文件: WorldBankData.java
/**
* Gets the hjid.
*
* @return the hjid
*/
  @Id
  @Column(name = "HJID")
  @GeneratedValue(strategy = GenerationType.AUTO)
  public Long getHjid() {
      return hjid;
  }
 
源代码24 项目: uyuni   文件: Cluster.java
/**
 * @return id to get
 */
@Id
@Column(name = "id")
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "clust_seq")
@SequenceGenerator(name = "clust_seq", sequenceName = "suse_cluster_id_seq",
        allocationSize = 1)
public long getId() {
    return id;
}
 
源代码25 项目: cia   文件: DocumentProposalData.java
/**
* Gets the hjid.
*
* @return the hjid
*/
  @Id
  @Column(name = "HJID")
  @GeneratedValue(strategy = GenerationType.AUTO)
  public Long getHjid() {
      return hjid;
  }
 
源代码26 项目: cia   文件: SwedenElectionRegion.java
/**
* Gets the hjid.
*
* @return the hjid
*/
  @Id
  @Column(name = "HJID")
  @GeneratedValue(strategy = GenerationType.AUTO)
  public Long getHjid() {
      return hjid;
  }
 
源代码27 项目: tutorials   文件: Car.java
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name = "ID", unique = true, nullable = false, scale = 0)
public long getId() {
    return id;
}
 
源代码28 项目: Spring-5.0-Cookbook   文件: LoginDetails.java
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
public Integer getId() {
	return id;
}
 
源代码29 项目: juddi   文件: CategoryBag.java
@Id
@GeneratedValue(strategy=GenerationType.AUTO)
public Long getId() {
	return this.id;
}
 
源代码30 项目: juddi   文件: ServiceName.java
@Id
@GeneratedValue(strategy=GenerationType.AUTO)
public Long getId() {
	return this.id;
}
 
 类所在包
 同包方法