Java Code Examples for javax.persistence.GenerationType#AUTO

The following examples show how to use javax.persistence.GenerationType#AUTO . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: SwedenCountyElectoralRegionContainer.java    From cia with Apache License 2.0 5 votes vote down vote up
/**
* Gets the hjid.
*
* @return the hjid
*/
  @Id
  @Column(name = "HJID")
  @GeneratedValue(strategy = GenerationType.AUTO)
  public Long getHjid() {
      return hjid;
  }
 
Example 2
Source File: DocumentProposalData.java    From cia with Apache License 2.0 5 votes vote down vote up
/**
* Gets the hjid.
*
* @return the hjid
*/
  @Id
  @Column(name = "HJID")
  @GeneratedValue(strategy = GenerationType.AUTO)
  public Long getHjid() {
      return hjid;
  }
 
Example 3
Source File: PersonDetailElement.java    From cia with Apache License 2.0 5 votes vote down vote up
/**
* Gets the hjid.
*
* @return the hjid
*/
  @Id
  @Column(name = "HJID")
  @GeneratedValue(strategy = GenerationType.AUTO)
  public Long getHjid() {
      return hjid;
  }
 
Example 4
Source File: DocumentDetailContainer.java    From cia with Apache License 2.0 5 votes vote down vote up
/**
* Gets the hjid.
*
* @return the hjid
*/
  @Id
  @Column(name = "HJID")
  @GeneratedValue(strategy = GenerationType.AUTO)
  public Long getHjid() {
      return hjid;
  }
 
Example 5
Source File: ApplicationPersistenceEntity.java    From jump-the-queue with Apache License 2.0 5 votes vote down vote up
@Override
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
public Long getId() {

  return this.id;
}
 
Example 6
Source File: AssignmentElement.java    From cia with Apache License 2.0 5 votes vote down vote up
/**
* Gets the hjid.
*
* @return the hjid
*/
  @Id
  @Column(name = "HJID")
  @GeneratedValue(strategy = GenerationType.AUTO)
  public Long getHjid() {
      return hjid;
  }
 
Example 7
Source File: DetailData.java    From cia with Apache License 2.0 5 votes vote down vote up
/**
* Gets the hjid.
*
* @return the hjid
*/
  @Id
  @Column(name = "HJID")
  @GeneratedValue(strategy = GenerationType.AUTO)
  public Long getHjid() {
      return hjid;
  }
 
Example 8
Source File: WebOfficeEntity.java    From jeewx with Apache License 2.0 5 votes vote down vote up
/**
 *方法: 取得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;
}
 
Example 9
Source File: CommitteeProposalComponentData.java    From cia with Apache License 2.0 5 votes vote down vote up
/**
* Gets the hjid.
*
* @return the hjid
*/
  @Id
  @Column(name = "HJID")
  @GeneratedValue(strategy = GenerationType.AUTO)
  public Long getHjid() {
      return hjid;
  }
 
Example 10
Source File: CommitteeProposalData.java    From cia with Apache License 2.0 5 votes vote down vote up
/**
* Gets the hjid.
*
* @return the hjid
*/
  @Id
  @Column(name = "HJID")
  @GeneratedValue(strategy = GenerationType.AUTO)
  public Long getHjid() {
      return hjid;
  }
 
Example 11
Source File: LoginDetails.java    From Spring-5.0-Cookbook with MIT License 4 votes vote down vote up
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
public Integer getId() {
	return id;
}
 
Example 12
Source File: OneTwo.java    From hyperjaxb3 with BSD 2-Clause "Simplified" License 4 votes vote down vote up
@Id
@Column(name = "HJID")
@GeneratedValue(strategy = GenerationType.AUTO)
public Long getHjid() {
    return hjid;
}
 
Example 13
Source File: Department.java    From Spring-5.0-Cookbook with MIT License 4 votes vote down vote up
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
public Integer getId() {
	return id;
}
 
Example 14
Source File: Department.java    From Spring-5.0-Cookbook with MIT License 4 votes vote down vote up
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
public Integer getId() {
	return id;
}
 
Example 15
Source File: Department.java    From Spring-5.0-Cookbook with MIT License 4 votes vote down vote up
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
public Integer getId() {
	return id;
}
 
Example 16
Source File: LoginDetails.java    From Spring-5.0-Cookbook with MIT License 4 votes vote down vote up
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
public Integer getId() {
	return id;
}
 
Example 17
Source File: UserDetails.java    From Spring-5.0-Cookbook with MIT License 4 votes vote down vote up
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
public Integer getId() {
	return id;
}
 
Example 18
Source File: CustomParameterPersisted.java    From joynr with Apache License 2.0 4 votes vote down vote up
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
protected final Long getId() {
    return id;
}
 
Example 19
Source File: Employee.java    From Spring-5.0-Cookbook with MIT License 4 votes vote down vote up
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
public Integer getId() {
	return id;
}
 
Example 20
Source File: Agency.java    From cia with Apache License 2.0 3 votes vote down vote up
/**
 * Gets the value of the hjid property.
 * 
 * @return
 *     possible object is
 *     {@link Long }
 *     
 */
@Id
@Column(name = "HJID")
@GeneratedValue(strategy = GenerationType.AUTO)
public Long getHjid() {
    return hjid;
}