javax.persistence.Id Java Examples

The following examples show how to use javax.persistence.Id. 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: UserHistory.java    From youkefu with Apache License 2.0 6 votes vote down vote up
@Id
@Column(length=32)
@GeneratedValue(generator="system-uuid")
@GenericGenerator(name="system-uuid", strategy="assigned")
public String getId() {
	return id;
}
 
Example #2
Source File: Organization.java    From youkefu with Apache License 2.0 5 votes vote down vote up
@Id
@Column(length = 32)
@GeneratedValue(generator = "system-uuid")
@GenericGenerator(name = "system-uuid", strategy = "uuid")
public String getId() {
	return id;
}
 
Example #3
Source File: ColumnProperties.java    From youkefu with Apache License 2.0 5 votes vote down vote up
@Id
@Column(length = 32)
@GeneratedValue(generator = "system-uuid")
@GenericGenerator(name = "system-uuid", strategy = "uuid")
public String getId() {
	return id;
}
 
Example #4
Source File: EkmKnowledgeVersion.java    From youkefu with Apache License 2.0 5 votes vote down vote up
@Id
@Column(length = 32)
@GeneratedValue(generator = "system-uuid")
@GenericGenerator(name = "system-uuid", strategy = "uuid")
public String getId() {
	return id;
}
 
Example #5
Source File: DataEvent.java    From youkefu with Apache License 2.0 5 votes vote down vote up
@Id
@Column(length = 32)
@GeneratedValue(generator = "system-uuid")
@GenericGenerator(name = "system-uuid", strategy = "uuid")	
public String getId() {
	return id;
}
 
Example #6
Source File: WorkSession.java    From youkefu with Apache License 2.0 5 votes vote down vote up
@Id
@Column(length = 32)
@GeneratedValue(generator = "system-uuid")
@GenericGenerator(name = "system-uuid", strategy = "uuid")	
public String getId() {
	return id;
}
 
Example #7
Source File: Tag.java    From youkefu with Apache License 2.0 5 votes vote down vote up
@Id
@Column(length = 32)
@GeneratedValue(generator = "system-uuid")
@GenericGenerator(name = "system-uuid", strategy = "uuid")	
public String getId() {
	return id;
}
 
Example #8
Source File: DrillDown.java    From youkefu with Apache License 2.0 5 votes vote down vote up
@Id
@Column(length = 32)
@GeneratedValue(generator = "system-uuid")
@GenericGenerator(name = "system-uuid", strategy = "uuid")
public String getId() {
	return id;
}
 
Example #9
Source File: AgentStatus.java    From youkefu with Apache License 2.0 5 votes vote down vote up
@Id
@Column(length = 32)
@GeneratedValue(generator = "system-uuid")
@GenericGenerator(name = "system-uuid", strategy = "uuid")	
public String getId() {
	return id;
}
 
Example #10
Source File: SmsResult.java    From youkefu with Apache License 2.0 5 votes vote down vote up
@Id
@Column(length = 32)
@GeneratedValue(generator = "system-uuid")
@GenericGenerator(name = "system-uuid", strategy = "uuid")
public String getId() {
	return id;
}
 
Example #11
Source File: Database.java    From youkefu with Apache License 2.0 5 votes vote down vote up
@Id
@Column(length = 32)
@GeneratedValue(generator = "system-uuid")
@GenericGenerator(name = "system-uuid", strategy = "uuid")
public String getId() {
	return id;
}
 
Example #12
Source File: TagRelation.java    From youkefu with Apache License 2.0 5 votes vote down vote up
@Id
@Column(length=32)
@GeneratedValue(generator="system-uuid")
@GenericGenerator(name="system-uuid", strategy="uuid")
public String getId() {
	return id;
}
 
Example #13
Source File: BeanUtil.java    From anyline with Apache License 2.0 5 votes vote down vote up
/** 
 * 主键列名 
 * @param clazz  clazz
 * @return return
 */ 
public static String getPrimaryKey(Class<?> clazz){ 
	List<Field> fields = searchFieldsByAnnotation(clazz, Id.class); 
	if(fields.size()>0){ 
		Field field = fields.get(0); 
		return getColumn(field, false, false); 
	} 
	return null; 
}
 
Example #14
Source File: Reporter.java    From youkefu with Apache License 2.0 5 votes vote down vote up
/**
 * @return the id
 */
@Id
@Column(length = 32)
@GeneratedValue(generator = "system-uuid")
@GenericGenerator(name = "system-uuid", strategy = "assigned")
public String getId() {
	return id;
}
 
Example #15
Source File: Secret.java    From youkefu with Apache License 2.0 5 votes vote down vote up
@Id
@Column(length=32)
@GeneratedValue(generator="system-uuid")
@GenericGenerator(name="system-uuid", strategy="uuid")
public String getId() {
	return id;
}
 
Example #16
Source File: AgentUser.java    From youkefu with Apache License 2.0 5 votes vote down vote up
@Id
@Column(length = 32)
@GeneratedValue(generator = "system-uuid")
@GenericGenerator(name = "system-uuid", strategy = "uuid")
public String getId() {
	return this.id;
}
 
Example #17
Source File: Media.java    From youkefu with Apache License 2.0 5 votes vote down vote up
@Id
@Column(length = 32)
@GeneratedValue(generator = "system-uuid")
@GenericGenerator(name = "system-uuid", strategy = "assigned")	
public String getId() {
	return id;
}
 
Example #18
Source File: SceneType.java    From youkefu with Apache License 2.0 5 votes vote down vote up
@Id
@Column(length = 32)
@GeneratedValue(generator = "system-uuid")
@GenericGenerator(name = "system-uuid", strategy = "uuid")	
public String getId() {
	return id;
}
 
Example #19
Source File: EkmKnowbase.java    From youkefu with Apache License 2.0 5 votes vote down vote up
@Id
@Column(length = 32)
@GeneratedValue(generator = "system-uuid")
@GenericGenerator(name = "system-uuid", strategy = "uuid")	
public String getId() {
	return id;
}
 
Example #20
Source File: EkmHelpDeskTimes.java    From youkefu with Apache License 2.0 5 votes vote down vote up
@Id
@Column(length = 32)
@GeneratedValue(generator = "system-uuid")
@GenericGenerator(name = "system-uuid", strategy = "uuid")	
public String getId() {
	return id;
}
 
Example #21
Source File: PbxHostLog.java    From youkefu with Apache License 2.0 5 votes vote down vote up
@Id
@Column(length = 32)
@GeneratedValue(generator = "system-uuid")
@GenericGenerator(name = "system-uuid", strategy = "uuid")	
public String getId() {
	return id;
}
 
Example #22
Source File: EkmCollectFolder.java    From youkefu with Apache License 2.0 5 votes vote down vote up
@Id
@Column(length = 32)
@GeneratedValue(generator = "system-uuid")
@GenericGenerator(name = "system-uuid", strategy = "uuid")
public String getId() {
	return id;
}
 
Example #23
Source File: EkmKnowbaseConfig.java    From youkefu with Apache License 2.0 5 votes vote down vote up
@Id
@Column(length = 32)
@GeneratedValue(generator = "system-uuid")
@GenericGenerator(name = "system-uuid", strategy = "uuid")	
public String getId() {
	return id;
}
 
Example #24
Source File: SNSAccount.java    From youkefu with Apache License 2.0 5 votes vote down vote up
@Id
@Column(length = 32)
@GeneratedValue(generator = "system-uuid")
@GenericGenerator(name = "system-uuid", strategy = "uuid")
public String getId() {
	return id;
}
 
Example #25
Source File: EkmComments.java    From youkefu with Apache License 2.0 5 votes vote down vote up
@Id
@Column(length = 32)
@GeneratedValue(generator = "system-uuid")
@GenericGenerator(name = "system-uuid", strategy = "uuid")	
public String getId() {
	return id;
}
 
Example #26
Source File: EkmExperts.java    From youkefu with Apache License 2.0 5 votes vote down vote up
@Id
@Column(length = 32)
@GeneratedValue(generator = "system-uuid")
@GenericGenerator(name = "system-uuid", strategy = "uuid")	
public String getId() {
	return id;
}
 
Example #27
Source File: QueSurveyResultAnswer.java    From youkefu with Apache License 2.0 5 votes vote down vote up
@Id
@Column(length = 32)
@GeneratedValue(generator = "system-uuid")
@GenericGenerator(name = "system-uuid", strategy = "uuid")	
public String getId() {
	return id;
}
 
Example #28
Source File: EkmKnowbaseRole.java    From youkefu with Apache License 2.0 5 votes vote down vote up
@Id
@Column(length = 32)
@GeneratedValue(generator = "system-uuid")
@GenericGenerator(name = "system-uuid", strategy = "uuid")	
public String getId() {
	return id;
}
 
Example #29
Source File: Notice.java    From youkefu with Apache License 2.0 5 votes vote down vote up
@Id
@Column(length = 32)
@GeneratedValue(generator = "system-uuid")
@GenericGenerator(name = "system-uuid", strategy = "uuid")	
public String getId() {
	return id;
}
 
Example #30
Source File: PropertiesEvent.java    From youkefu with Apache License 2.0 5 votes vote down vote up
@Id
@Column(length = 32)
@GeneratedValue(generator = "system-uuid")
@GenericGenerator(name = "system-uuid", strategy = "uuid")	
public String getId() {
	return id;
}