35 lines
451 B
Java
35 lines
451 B
Java
package com.imyeyu.spring.entity;
|
|
|
|
import com.imyeyu.spring.annotation.table.Id;
|
|
|
|
/**
|
|
* 基本长整型 ID 实体
|
|
*
|
|
* @author 夜雨
|
|
* @since 2025-02-07 12:51
|
|
*/
|
|
public class Entity extends BaseEntity implements IDEntity<Long> {
|
|
|
|
/** ID */
|
|
@Id
|
|
protected Long id;
|
|
|
|
/**
|
|
* 获取 ID
|
|
*
|
|
* @return ID
|
|
*/
|
|
public Long getId() {
|
|
return id;
|
|
}
|
|
|
|
/**
|
|
* 设置 ID
|
|
*
|
|
* @param id ID
|
|
*/
|
|
public void setId(Long id) {
|
|
this.id = id;
|
|
}
|
|
}
|