Changeset 501396e for src/main/java/com/example/cookbook/model
- Timestamp:
- 02/03/24 15:58:58 (9 months ago)
- Branches:
- master
- Children:
- aea04dd
- Parents:
- 3e572eb
- Location:
- src/main/java/com/example/cookbook/model
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/java/com/example/cookbook/model/DostavaDTO.java
r3e572eb r501396e 1 package com.example.cookbook.model;public class Dostava { 1 package com.example.cookbook.model; 2 3 import java.time.LocalDateTime; 4 5 public record DostavaDTO (String recIme, String adresa, String sostojka, LocalDateTime vreme, String telefon){ 6 public DostavaDTO(String recIme, String adresa, String sostojka, LocalDateTime vreme, String telefon) { 7 this.recIme = recIme; 8 this.adresa = adresa; 9 this.sostojka = sostojka; 10 this.vreme = vreme; 11 this.telefon = telefon; 12 } 2 13 } -
src/main/java/com/example/cookbook/model/Recept.java
r3e572eb r501396e 1 1 package com.example.cookbook.model; 2 2 3 public class Recept ForList{3 public class Recept { 4 4 5 5 private Long recId; 6 6 7 7 private String recIme; 8 9 public String getPostapka() {10 return postapka;11 }12 13 public void setPostapka(String postapka) {14 this.postapka = postapka;15 }16 8 17 9 private String postapka; … … 27 19 } 28 20 29 public Recept ForList(Long recId, String recIme, String postapka) {21 public Recept(Long recId, String recIme, String postapka) { 30 22 this.recId = recId; 31 23 this.recIme = recIme; … … 34 26 } 35 27 36 public Recept ForList() {28 public Recept() { 37 29 } 38 30 … … 53 45 } 54 46 47 public String getPostapka() { 48 return postapka; 49 } 55 50 51 public void setPostapka(String postapka) { 52 this.postapka = postapka; 53 } 56 54 } -
src/main/java/com/example/cookbook/model/Slika.java
r3e572eb r501396e 1 package com.example.cookbook.model;public class Slika { 1 package com.example.cookbook.model; 2 3 public class Slika { 4 5 private Integer redenBroj; 6 7 private Long recId; 8 9 private String pic; 10 11 public Slika() { 12 } 13 14 public Slika(Integer redenBroj, Long recId, String pic) { 15 this.redenBroj = redenBroj; 16 this.recId = recId; 17 this.pic = pic; 18 } 19 20 public String getPic() { 21 return pic; 22 } 23 24 public void setPic(String pic) { 25 this.pic = pic; 26 } 27 28 public Integer getRedenBroj() { 29 return redenBroj; 30 } 31 32 public void setRedenBroj(Integer redenBroj) { 33 this.redenBroj = redenBroj; 34 } 35 36 public Long getRecId() { 37 return recId; 38 } 39 40 public void setRecId(Long recId) { 41 this.recId = recId; 42 } 2 43 } -
src/main/java/com/example/cookbook/model/Sostojka.java
r3e572eb r501396e 1 package com.example.cookbook.model;public class Sostojki { 1 package com.example.cookbook.model; 2 3 public class Sostojka { 4 5 private Long sId; 6 7 private String sNaziv; 8 9 public Sostojka(Long sId, String sNaziv) { 10 this.sId = sId; 11 this.sNaziv = sNaziv; 12 } 13 14 public Sostojka() { 15 } 16 17 public Long getsId() { 18 return sId; 19 } 20 21 public void setsId(Long sId) { 22 this.sId = sId; 23 } 24 25 public String getsNaziv() { 26 return sNaziv; 27 } 28 29 public void setsNaziv(String sNaziv) { 30 this.sNaziv = sNaziv; 31 } 2 32 } -
src/main/java/com/example/cookbook/model/exception/ReceptNeEPronajdenException.java
r3e572eb r501396e 1 package com.example.cookbook.model.exception;public class ReceptNeEPronajdenException { 1 package com.example.cookbook.model.exception; 2 3 public class ReceptNeEPronajdenException extends RuntimeException{ 4 public ReceptNeEPronajdenException() { 5 super("Receptot ne e pronajden"); 6 } 2 7 }
Note:
See TracChangeset
for help on using the changeset viewer.