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

com.magic80.springBootCommon.model.BaseEntity Maven / Gradle / Ivy

There is a newer version: 0.0.3
Show newest version
package com.magic80.springBootCommon.model;

import com.magic80.springBootCommon.annotation.AutoCreateAnnotation;
import com.magic80.springBootCommon.annotation.AutoUpdateAnnotation;

import javax.persistence.Id;
import java.io.Serializable;

public class BaseEntity implements Serializable {

    @Id
    private Integer id;

    @AutoCreateAnnotation
    private Integer createdAt;

    @AutoUpdateAnnotation
    private Integer updatedAt;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(Integer createdAt) {
        this.createdAt = createdAt;
    }

    public Integer getUpdatedAt() {
        return updatedAt;
    }

    public void setUpdatedAt(Integer updatedAt) {
        this.updatedAt = updatedAt;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy