Java 类org.hibernate.search.annotations.DocumentId 实例源码
项目:sdcct
文件:SdcctResourceImpl.java
@Column(name = DbColumnNames.ENTITY_ID)
@DocumentId(name = DbFieldNames.ENTITY_ID)
@GeneratedValue(generator = DbSequenceNames.RESOURCE_ENTITY_ID, strategy = GenerationType.SEQUENCE)
@Id
@Nonnegative
@Nullable
@Override
@SequenceGenerator(allocationSize = 1, name = DbSequenceNames.RESOURCE_ENTITY_ID, sequenceName = DbSequenceNames.RESOURCE_ENTITY_ID)
@SortableField(forField = DbColumnNames.ENTITY_ID)
public Long getEntityId() {
return super.getEntityId();
}
项目:my-paper
文件:BaseEntity.java
/**
* 获取ID
*
* @return ID
*/
@JsonProperty
@DocumentId
@Id
// MySQL/SQLServer: @GeneratedValue(strategy = GenerationType.AUTO)
// Oracle: @GeneratedValue(strategy = GenerationType.AUTO, generator = "sequenceGenerator")
@GeneratedValue(strategy = GenerationType.AUTO, generator = "sequenceGenerator")
public Long getId() {
return id;
}
项目:play
文件:Example.java
@Id
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "SEQ_ID")
@SequenceGenerator(name = "SEQ_ID", sequenceName = "SEQ_ID")
@DocumentId
public long getId() {
return id;
}
项目:musicrecital
文件:MusicProgram.java
/**
* @return the id
*/
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
@DocumentId
public Long getId() {
return id;
}
项目:Hibernate-Search-GenericJPA
文件:MultipleColumnsIdEntity.java
@DocumentId
@FieldBridge(impl = IDFieldBridge.class)
public ID getDocumentId() {
ID ret = new ID();
ret.setFirstId( this.getFirstId() );
ret.setSecondId( this.getSecondId() );
return ret;
}
项目:bookManager
文件:Book.java
@DocumentId
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
public Long getId() {
return id;
}
项目:ldadmin
文件:User.java
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
@DocumentId
public Long getId() {
return id;
}
项目:musicrecital
文件:User.java
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
@DocumentId
public Long getId() {
return id;
}
项目:windup-rulesets
文件:Book.java
@Id
@DocumentId
public Integer getId()
{
return id;
}
项目:Hibernate-Search-GenericJPA
文件:Place.java
@Id
@Column(name = "ID")
@DocumentId
public Integer getId() {
return id;
}
项目:Hibernate-Search-GenericJPA
文件:SearchFactoryTest.java
@DocumentId
public Integer getId() {
return this.id;
}
项目:Hibernate-Search-GenericJPA
文件:SearchFactoryTest.java
@DocumentId
public Integer getId() {
return this.id;
}
项目:Hibernate-Search-GenericJPA
文件:IndexOperationsTest.java
@DocumentId
public Integer getId() {
return id;
}
项目:Hibernate-Search-GenericJPA
文件:Sorcerer.java
/**
* @return the id
*/
@DocumentId
@FieldBridge(impl = IntegerBridge.class)
public Integer getId() {
return id;
}
项目:Hibernate-Search-GenericJPA
文件:Place.java
/**
* @return the id
*/
@DocumentId
public Integer getId() {
return id;
}