@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(); }
/** * 获取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; }
@Id @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "SEQ_ID") @SequenceGenerator(name = "SEQ_ID", sequenceName = "SEQ_ID") @DocumentId public long getId() { return id; }
/** * @return the id */ @Id @GeneratedValue(strategy = GenerationType.AUTO) @DocumentId public Long getId() { return id; }
@DocumentId @FieldBridge(impl = IDFieldBridge.class) public ID getDocumentId() { ID ret = new ID(); ret.setFirstId( this.getFirstId() ); ret.setSecondId( this.getSecondId() ); return ret; }
@DocumentId @Id @GeneratedValue(strategy = GenerationType.IDENTITY) public Long getId() { return id; }
@Id @GeneratedValue(strategy = GenerationType.AUTO) @DocumentId public Long getId() { return id; }
@Id @DocumentId public Integer getId() { return id; }
@Id @Column(name = "ID") @DocumentId public Integer getId() { return id; }
@DocumentId public Integer getId() { return this.id; }
@DocumentId public Integer getId() { return id; }
/** * @return the id */ @DocumentId @FieldBridge(impl = IntegerBridge.class) public Integer getId() { return id; }
/** * @return the id */ @DocumentId public Integer getId() { return id; }