Ignore:
Timestamp:
07/07/23 12:14:58 (16 months ago)
Author:
HristijanMitic00 <hristijan.mitic.01@…>
Branches:
main
Parents:
1dd9226
Message:

First commit

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/main/java/project/fmo/app/projcetfmo/Model/Korisnik.java

    r1dd9226 rd14176d  
    1 package model;
     1package project.fmo.app.projcetfmo.Model;
    22
    3 import jakarta.persistence.*;
    43
     4import org.springframework.security.core.GrantedAuthority;
     5import org.springframework.security.core.userdetails.UserDetails;
     6
     7import javax.persistence.*;
    58import java.sql.Timestamp;
     9import java.util.Collection;
     10import java.util.Collections;
    611import java.util.Objects;
    712
    813@Entity
    9 public class Korisnik {
     14@Table(schema = "project", name = "korisnik",  catalog = "db_202223z_va_prj_fmo")
     15public class Korisnik implements UserDetails {
    1016    @GeneratedValue(strategy = GenerationType.IDENTITY)
    1117    @Id
     
    2127    @Column(name = "kreiran_na_datum")
    2228    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    }
    2339
    2440    public int getIdKorisnik() {
     
    6682        return Objects.hash(idKorisnik, imePrezime, passwordKorisnik, kreiranNaDatum);
    6783    }
     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    }
    68119}
Note: See TracChangeset for help on using the changeset viewer.