fixed category in posts
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package com.krylov.refound.entity;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import com.krylov.refound.enums.PostCategory;
|
||||
import com.krylov.refound.enums.PostStatus;
|
||||
import com.krylov.refound.enums.PostType;
|
||||
import jakarta.persistence.CascadeType;
|
||||
@@ -32,7 +33,8 @@ public class Post {
|
||||
private String title;
|
||||
@Column(length = 2000)
|
||||
private String description;
|
||||
private String category;
|
||||
@Enumerated(EnumType.STRING)
|
||||
private PostCategory category;
|
||||
private String city;
|
||||
private String district;
|
||||
private Double latitude;
|
||||
@@ -53,5 +55,4 @@ public class Post {
|
||||
@OneToMany(mappedBy = "post", cascade = CascadeType.ALL, orphanRemoval = true)
|
||||
private List<Image> images = new ArrayList<>();
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user