Files
pcinv/src/main/java/be/seeseepuff/pcinv/models/WorkLogEntry.java
Sebastiaan de Schaetzen 7fca7c4ff0
All checks were successful
Build / build (push) Successful in 2m43s
Deploy / build (push) Successful in 2m24s
Adding api
2025-06-09 19:49:44 +02:00

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;
}