File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
src/main/java/eu/mulk/mulkcms2/benki Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ public class Newsletter extends PanacheEntityBase {
23
23
@ Column (name = "date" , nullable = false )
24
24
public OffsetDateTime date = OffsetDateTime .now ();
25
25
26
- @ OneToMany (mappedBy = "owner " , fetch = FetchType .LAZY )
26
+ @ OneToMany (mappedBy = "newsletter " , fetch = FetchType .LAZY )
27
27
@ OrderBy ("date" )
28
28
public Collection <Post > posts ;
29
29
}
Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ public enum Scope {
73
73
@ CheckForNull
74
74
public OffsetDateTime date ;
75
75
76
- @ Column (nullable = false )
76
+ @ Column (nullable = false , columnDefinition = "benki.post_scope" )
77
77
@ Enumerated (EnumType .STRING )
78
78
@ Type (PostgreSQLEnumType .class )
79
79
public Scope scope = Scope .top_level ;
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ public abstract class PostText extends PanacheEntityBase {
47
47
@ CheckForNull
48
48
public String cachedDescriptionHtml ;
49
49
50
- @ Column (name = "search_terms" )
50
+ @ Column (name = "search_terms" , columnDefinition = "tsvector" )
51
51
@ Generated (event = {INSERT , UPDATE })
52
52
@ Type (value = PostgreSQLTSVectorType .class )
53
53
public String searchTerms ;
You can’t perform that action at this time.
0 commit comments