37 lines
840 B
Java
37 lines
840 B
Java
package be.seeseepuff.pcinv.models;
|
|
|
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
|
import com.fasterxml.jackson.annotation.JsonIgnore;
|
|
import jakarta.persistence.Entity;
|
|
import jakarta.persistence.GeneratedValue;
|
|
import jakarta.persistence.Id;
|
|
import jakarta.persistence.ManyToOne;
|
|
import lombok.Getter;
|
|
import lombok.Setter;
|
|
|
|
import java.time.ZonedDateTime;
|
|
|
|
/**
|
|
* Represents a work log entry in the system.
|
|
*/
|
|
@Setter
|
|
@Getter
|
|
@Entity
|
|
public class WorkLogEntry {
|
|
@Id
|
|
@GeneratedValue
|
|
@JsonIgnore
|
|
private long id;
|
|
|
|
@JsonIgnore
|
|
@ManyToOne(optional = false)
|
|
private GenericAsset asset;
|
|
|
|
/// The description of the work log entry.
|
|
private String comment;
|
|
|
|
/// The date and time when the work log entry was created.
|
|
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
|
private ZonedDateTime date;
|
|
}
|