Class Products

java.lang.Object
com.cyran.tp.server.products.Products

@Entity
public class Products
extends java.lang.Object
Class for mapping products to DB table using Hibernate
Author:
Jakub Perdek
  • Constructor Summary

    Constructors 
    Constructor Description
    Products()  
  • Method Summary

    Modifier and Type Method Description
    java.lang.String getDescription()
    Gets description of product
    java.lang.Integer getId()
    Gets id of product
    java.lang.String getName()
    Gets name of product
    java.lang.Double getPrice()
    Gets price of product
    java.lang.String getUrl()
    Gets url of product
    void setDescription​(java.lang.String description)
    Sets description of product
    void setId​(java.lang.Integer id)
    Sets id of product
    void setName​(java.lang.String name)
    Sets name of product
    void setPrice​(java.lang.Double price)
    Sets price of product
    void setUrl​(java.lang.String url)
    Sets url of product

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • getId

      public java.lang.Integer getId()
      Gets id of product
      Returns:
      id of product
    • setId

      public void setId​(java.lang.Integer id)
      Sets id of product
      Parameters:
      id - of product
    • getName

      public java.lang.String getName()
      Gets name of product
      Returns:
      name of product
    • setName

      public void setName​(java.lang.String name)
      Sets name of product
      Parameters:
      name - of product
    • getDescription

      public java.lang.String getDescription()
      Gets description of product
      Returns:
      description of product
    • setDescription

      public void setDescription​(java.lang.String description)
      Sets description of product
      Parameters:
      description - of product
    • getUrl

      public java.lang.String getUrl()
      Gets url of product
      Returns:
      url of product
    • setUrl

      public void setUrl​(java.lang.String url)
      Sets url of product
      Parameters:
      url - of product
    • getPrice

      public java.lang.Double getPrice()
      Gets price of product
      Returns:
      price of product
    • setPrice

      public void setPrice​(java.lang.Double price)
      Sets price of product
      Parameters:
      price - of product