Legend:
- Unmodified
- Added
- Removed
-
src/main/java/project/fmo/app/projcetfmo/Model/Korisnik.java
r1dd9226 rd14176d 1 package model;1 package project.fmo.app.projcetfmo.Model; 2 2 3 import jakarta.persistence.*;4 3 4 import org.springframework.security.core.GrantedAuthority; 5 import org.springframework.security.core.userdetails.UserDetails; 6 7 import javax.persistence.*; 5 8 import java.sql.Timestamp; 9 import java.util.Collection; 10 import java.util.Collections; 6 11 import java.util.Objects; 7 12 8 13 @Entity 9 public class Korisnik { 14 @Table(schema = "project", name = "korisnik", catalog = "db_202223z_va_prj_fmo") 15 public class Korisnik implements UserDetails { 10 16 @GeneratedValue(strategy = GenerationType.IDENTITY) 11 17 @Id … … 21 27 @Column(name = "kreiran_na_datum") 22 28 private Timestamp kreiranNaDatum; 29 30 31 public Korisnik(){ 32 33 } 34 public Korisnik(String imePrezime, String passwordKorisnik, Timestamp kreiranNaDatum) { 35 this.imePrezime = imePrezime; 36 this.passwordKorisnik = passwordKorisnik; 37 this.kreiranNaDatum = kreiranNaDatum; 38 } 23 39 24 40 public int getIdKorisnik() { … … 66 82 return Objects.hash(idKorisnik, imePrezime, passwordKorisnik, kreiranNaDatum); 67 83 } 84 85 @Override 86 public Collection<? extends GrantedAuthority> getAuthorities() { 87 return null; 88 } 89 90 @Override 91 public String getPassword() { 92 return null; 93 } 94 95 @Override 96 public String getUsername() { 97 return null; 98 } 99 100 @Override 101 public boolean isAccountNonExpired() { 102 return false; 103 } 104 105 @Override 106 public boolean isAccountNonLocked() { 107 return false; 108 } 109 110 @Override 111 public boolean isCredentialsNonExpired() { 112 return false; 113 } 114 115 @Override 116 public boolean isEnabled() { 117 return false; 118 } 68 119 }
Note:
See TracChangeset
for help on using the changeset viewer.