java.lang.Object
es.kukenan.smartfi.microservice.contracts.repository.entity.Profile
All Implemented Interfaces:
Serializable

@Entity public class Profile extends Object implements Serializable
DAO for Profile table in Database.
See Also:
  • Field Details

    • id

      @Size(max=50) private @Size(max=50) String id
      Profile id.
    • name

      private String name
      Profile name.
    • isDefault

      private boolean isDefault
      Boolean indicating if this is the default profile.
    • ebContract

      private EbContract ebContract
      Ebcontract associated to the profile identifier.
    • products

      private List<Product> products
      Profile products.
  • Constructor Details

    • Profile

      public Profile()
  • Method Details

    • addProduct

      public void addProduct(Product product)
      Add a new product.
      Parameters:
      product - new product.
    • deleteProduct

      public void deleteProduct(Product product)
      Delete a product from the product list.
      Parameters:
      product - product to delete.
    • getIsDefault

      public boolean getIsDefault()
      Get is default profile.
      Returns:
      isDefault.