Changeset 8b875e6 for src/main/java/mk/ukim/finki/busngo/model
- Timestamp:
- 05/05/24 01:27:16 (7 months ago)
- Branches:
- master
- Children:
- baf4cc4
- Parents:
- 4d026a5
- Location:
- src/main/java/mk/ukim/finki/busngo/model/entities
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/java/mk/ukim/finki/busngo/model/entities/Kondukter.java
r4d026a5 r8b875e6 3 3 import jakarta.persistence.*; 4 4 import lombok.Data; 5 import lombok.EqualsAndHashCode; 5 6 6 7 import java.util.List; 7 8 import java.util.Objects; 8 9 10 @EqualsAndHashCode(callSuper = true) 9 11 @Data 10 12 @Entity -
src/main/java/mk/ukim/finki/busngo/model/entities/Korisnik.java
r4d026a5 r8b875e6 50 50 private String kLozinka; 51 51 52 @Basic 53 @Column(name = "k_role") 54 @Enumerated(EnumType.STRING) 55 private Role kRole; 56 52 57 // @OneToMany(mappedBy = "korisnikByPatnikKId") 53 58 // private List<Bilet> biletsByKId; … … 60 65 @Override 61 66 public Collection<? extends GrantedAuthority> getAuthorities() { 62 return kIsAdmin ? Collections.singletonList(Role.ROLE_ADMIN) : Collections.singletonList(Role.ROLE_USER);67 return Collections.singletonList(kRole); 63 68 } 64 69 -
src/main/java/mk/ukim/finki/busngo/model/entities/Patnik.java
r4d026a5 r8b875e6 3 3 import jakarta.persistence.*; 4 4 import lombok.Data; 5 import lombok.EqualsAndHashCode; 5 6 6 7 import java.util.List; 7 8 import java.util.Objects; 8 9 10 @EqualsAndHashCode(callSuper = true) 9 11 @Data 10 12 @Entity -
src/main/java/mk/ukim/finki/busngo/model/entities/Vozac.java
r4d026a5 r8b875e6 3 3 import jakarta.persistence.*; 4 4 import lombok.Data; 5 import lombok.EqualsAndHashCode; 5 6 6 7 import java.util.List; 7 8 import java.util.Objects; 8 9 10 @EqualsAndHashCode(callSuper = true) 9 11 @Data 10 12 @Entity -
src/main/java/mk/ukim/finki/busngo/model/entities/Vraboten.java
r4d026a5 r8b875e6 3 3 import jakarta.persistence.*; 4 4 import lombok.Data; 5 import lombok.EqualsAndHashCode; 5 6 import lombok.Getter; 6 7 … … 8 9 import java.util.Objects; 9 10 11 @EqualsAndHashCode(callSuper = true) 10 12 @Data 11 13 @Entity
Note:
See TracChangeset
for help on using the changeset viewer.