| Modifier | Constructor and Description |
|---|---|
protected |
Builder()
Use
Booking.builder() instead of private constructor to create new builder. |
protected |
Builder(Booking pObject)
Use
Booking.builder(Booking) instead of private constructor to create new builder. |
| Modifier and Type | Method and Description |
|---|---|
Booking |
build()
Method creates a new instance of class Booking.
|
Booking |
buildValidated()
Method creates a new validated instance of class Booking.
|
Booking.Builder |
setBookingID(BookingID pBookingID)
Method sets the association "bookingID".
|
protected Builder()
Booking.builder() instead of private constructor to create new builder.protected Builder(Booking pObject)
Booking.builder(Booking) instead of private constructor to create new builder.public Booking.Builder setBookingID(BookingID pBookingID)
pBookingID - BookingID to which the association "bookingID" should be set.public Booking build()
public Booking buildValidated() throws javax.validation.ConstraintViolationException
javax.validation.ConstraintViolationException - in case that one or more validations for the created object failed.Copyright © 2022. All rights reserved.