Advertisement
Metrowy

Katalog ejb

Mar 23rd, 2019
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  1. package com.audio.entities;
  2.  
  3. import java.io.Serializable;
  4. import javax.persistence.*;
  5.  
  6.  
  7. /**
  8. * The persistent class for the katalog database table.
  9. *
  10. */
  11. @Entity
  12. @NamedQuery(name="Katalog.findAll", query="SELECT k FROM Katalog k")
  13. public class Katalog implements Serializable {
  14. private static final long serialVersionUID = 1L;
  15.  
  16. @Id
  17. @GeneratedValue(strategy=GenerationType.IDENTITY)
  18. private int id;
  19.  
  20. //bi-directional many-to-one association to Plyta
  21. @ManyToOne
  22. private Plyta plyta;
  23.  
  24. //bi-directional many-to-one association to Uzytkownik
  25. @ManyToOne
  26. private Uzytkownik uzytkownik;
  27.  
  28. public Katalog() {
  29. }
  30.  
  31. public int getId() {
  32. return this.id;
  33. }
  34.  
  35. public void setId(int id) {
  36. this.id = id;
  37. }
  38.  
  39. public Plyta getPlyta() {
  40. return this.plyta;
  41. }
  42.  
  43. public void setPlyta(Plyta plyta) {
  44. this.plyta = plyta;
  45. }
  46.  
  47. public Uzytkownik getUzytkownik() {
  48. return this.uzytkownik;
  49. }
  50.  
  51. public void setUzytkownik(Uzytkownik uzytkownik) {
  52. this.uzytkownik = uzytkownik;
  53. }
  54.  
  55. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement