Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.audio.entities;
- import java.io.Serializable;
- import javax.persistence.*;
- /**
- * The persistent class for the katalog database table.
- *
- */
- @Entity
- @NamedQuery(name="Katalog.findAll", query="SELECT k FROM Katalog k")
- public class Katalog implements Serializable {
- private static final long serialVersionUID = 1L;
- @Id
- @GeneratedValue(strategy=GenerationType.IDENTITY)
- private int id;
- //bi-directional many-to-one association to Plyta
- @ManyToOne
- private Plyta plyta;
- //bi-directional many-to-one association to Uzytkownik
- @ManyToOne
- private Uzytkownik uzytkownik;
- public Katalog() {
- }
- public int getId() {
- return this.id;
- }
- public void setId(int id) {
- this.id = id;
- }
- public Plyta getPlyta() {
- return this.plyta;
- }
- public void setPlyta(Plyta plyta) {
- this.plyta = plyta;
- }
- public Uzytkownik getUzytkownik() {
- return this.uzytkownik;
- }
- public void setUzytkownik(Uzytkownik uzytkownik) {
- this.uzytkownik = uzytkownik;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement