All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.smallaswater.easysql.orm.api.Entity Maven / Gradle / Ivy

There is a newer version: 3.0.7
Show newest version
package com.smallaswater.easysql.orm.api;


import com.smallaswater.easysql.orm.annotations.entity.Column;
import com.smallaswater.easysql.orm.utils.Kind;

import java.sql.Timestamp;

/**
 * 可以继承这个类,将以下字段内嵌入用户自定义的Entity内
 */
public class Entity {

    // 一个 Entity 一定要有一个主键
    @Column(name = "id", kind = Kind.ID)
    public long id;

    @Column(name = "create_at", kind = Kind.DATETIME)
    public Timestamp CreatedAt;

    @Column(name = "updated_at", kind = Kind.DATETIME)
    public Timestamp UpdatedAt;

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy