| Modifier | Constructor and Description |
|---|---|
protected |
Builder()
Use
Sortiment.builder() instead of private constructor to create new builder. |
protected |
Builder(Sortiment pObject)
Use
Sortiment.builder(Sortiment) instead of private constructor to create new builder. |
| Modifier and Type | Method and Description |
|---|---|
Sortiment |
build()
Method creates a new instance of class Sortiment.
|
Sortiment |
buildValidated()
Method creates a new validated instance of class Sortiment.
|
Sortiment.Builder |
setProducts(Set<Product> pProducts)
Method sets the association "products".
|
protected Builder()
Sortiment.builder() instead of private constructor to create new builder.protected Builder(Sortiment pObject)
Sortiment.builder(Sortiment) instead of private constructor to create new builder.public Sortiment.Builder setProducts(Set<Product> pProducts)
pProducts - Collection with objects to which the association should be set.public Sortiment build()
public Sortiment 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.