Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.varion.lab.model;
- import javax.persistence.*;
- @Entity
- @Table (name = "products")
- public class Product {
- @Id
- @GeneratedValue (strategy = GenerationType.IDENTITY)
- private Long id;
- private String ime;
- private String opis;
- private String url;
- private Boolean lager;
- private Category category;
- private Manufacturer manufacturer;
- public Long getId() {
- return id;
- }
- public void setId(Long id) {
- this.id = id;
- }
- public String getIme() {
- return ime;
- }
- public void setIme(String ime) {
- this.ime = ime;
- }
- public String getOpis() {
- return opis;
- }
- public void setOpis(String opis) {
- this.opis = opis;
- }
- public String getUrl() {
- return url;
- }
- public void setUrl(String url) {
- this.url = url;
- }
- public Boolean getLager() {
- return lager;
- }
- public void setLager(Boolean lager) {
- this.lager = lager;
- }
- public Category getCategory() {
- return category;
- }
- public void setCategory(Category category) {
- this.category = category;
- }
- public Manufacturer getManufacturer() {
- return manufacturer;
- }
- public void setManufacturer(Manufacturer manufacturer) {
- this.manufacturer = manufacturer;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement