Package com.cyran.tp.server.products
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 productjava.lang.Integer
getId()
Gets id of productjava.lang.String
getName()
Gets name of productjava.lang.Double
getPrice()
Gets price of productjava.lang.String
getUrl()
Gets url of productvoid
setDescription(java.lang.String description)
Sets description of productvoid
setId(java.lang.Integer id)
Sets id of productvoid
setName(java.lang.String name)
Sets name of productvoid
setPrice(java.lang.Double price)
Sets price of productvoid
setUrl(java.lang.String url)
Sets url of product
-
Constructor Details
-
Products
public Products()
-
-
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
-