refactor v2

This commit is contained in:
dirgantarasiahaan
2023-05-24 09:31:01 +07:00
parent b49a2425c1
commit 4c500b18f5
3 changed files with 9 additions and 10 deletions

View File

@ -13,18 +13,18 @@ import java.sql.Timestamp;
@MappedSuperclass
public class BaseEntity implements Serializable {
@Column(name = "created_by", length = 50)
private String createdBy;
@Column(name = "user_created", length = 50)
private String userCreated;
@Column(name = "created_time", nullable = false, updatable=false)
@Column(name = "time_created", nullable = false, updatable=false)
@CreationTimestamp
private Timestamp createdTime;
private Timestamp timeCreated;
@Column(name = "updated_by", length = 50)
private String updatedBy;
@Column(name = "user_update", length = 50)
private String userUpdate;
@Column(name = "updated_time")
@Column(name = "last_update")
@UpdateTimestamp
private Timestamp updatedTime;
private Timestamp lastUpdate;
}