Class Profile
java.lang.Object
es.kukenan.smartfi.microservice.contracts.repository.entity.Profile
- All Implemented Interfaces:
Serializable
DAO for Profile table in Database.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate EbContractEbcontract associated to the profile identifier.private @Size(max=50) StringProfile id.private booleanBoolean indicating if this is the default profile.private StringProfile name.Profile products. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddProduct(Product product) Add a new product.voiddeleteProduct(Product product) Delete a product from the product list.booleanGet is default profile.
-
Field Details
-
id
Profile id. -
name
Profile name. -
isDefault
private boolean isDefaultBoolean indicating if this is the default profile. -
ebContract
Ebcontract associated to the profile identifier. -
products
Profile products.
-
-
Constructor Details
-
Profile
public Profile()
-
-
Method Details
-
addProduct
Add a new product.- Parameters:
product- new product.
-
deleteProduct
Delete a product from the product list.- Parameters:
product- product to delete.
-
getIsDefault
public boolean getIsDefault()Get is default profile.- Returns:
- isDefault.
-