Package io.extact.rms.application.domain
Class Reservation
java.lang.Object
io.extact.rms.application.domain.Reservation
- All Implemented Interfaces:
BeforeAfterDateTime.BeforeAfterDateTimeValidatable
,IdAccessable
,Transformable
@Entity
@BeforeAfterDateTime(from="\u5229\u7528\u958b\u59cb\u65e5\u6642",
to="\u5229\u7528\u7d42\u4e86\u65e5\u6642")
public class Reservation
extends Object
implements BeforeAfterDateTime.BeforeAfterDateTimeValidatable, Transformable, IdAccessable
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Reservation
of
(Integer reservationId, LocalDateTime startDateTime, LocalDateTime endDateTime, String note, int rentalItemId, int userAccountId) static Reservation
ofTransient
(LocalDateTime startDateTime, LocalDateTime endDateTime, String note, int rentalItemId, int userAccountId) void
setEndDateTime
(LocalDateTime endDateTime) void
setStartDateTime
(LocalDateTime startDateTime) toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface io.extact.rms.application.domain.constraint.BeforeAfterDateTime.BeforeAfterDateTimeValidatable
getEndDateTime, getStartDateTime
Methods inherited from interface io.extact.rms.application.domain.IdAccessable
getId, isSameId, setId
Methods inherited from interface io.extact.rms.application.domain.Transformable
transform
-
Constructor Details
-
Reservation
public Reservation()
-
-
Method Details
-
of
public static Reservation of(Integer reservationId, LocalDateTime startDateTime, LocalDateTime endDateTime, String note, int rentalItemId, int userAccountId) -
ofTransient
public static Reservation ofTransient(LocalDateTime startDateTime, LocalDateTime endDateTime, String note, int rentalItemId, int userAccountId) -
setStartDateTime
-
setEndDateTime
-
getReservePeriod
-
toString
-