24 lines
501 B
Java
24 lines
501 B
Java
package com.imyeyu.spring.entity;
|
|
|
|
import com.fasterxml.jackson.annotation.JsonView;
|
|
import com.imyeyu.spring.annotation.table.Id;
|
|
import com.imyeyu.spring.util.ResponseView;
|
|
import lombok.Data;
|
|
import lombok.EqualsAndHashCode;
|
|
|
|
/**
|
|
* 基本长整型 ID 实体
|
|
*
|
|
* @author 夜雨
|
|
* @since 2025-02-07 12:51
|
|
*/
|
|
@Data
|
|
@EqualsAndHashCode(callSuper = true)
|
|
public class Entity extends BaseEntity implements IDEntity<Long> {
|
|
|
|
/** ID */
|
|
@Id
|
|
@JsonView(ResponseView.Public.class)
|
|
protected Long id;
|
|
}
|