25
25
import org .hibernate .annotations .TypeDef ;
26
26
import org .hibernate .annotations .TypeDefs ;
27
27
28
- import com .vladmihalcea .hibernate .type .array .ListArrayType ;
29
28
import com .vladmihalcea .hibernate .type .json .JsonBinaryType ;
30
29
31
30
import de .symeda .sormas .api .Disease ;
48
47
import de .symeda .sormas .backend .user .User ;
49
48
50
49
@ Entity (name = ExternalMessage .TABLE_NAME )
50
+
51
51
@ TypeDefs ({
52
- @ TypeDef (name = "list-array" , typeClass = ListArrayType .class ),
53
- @ TypeDef (name = "jsonb" , typeClass = JsonBinaryType .class ),
54
- @ TypeDef (name = "json" , typeClass = JsonBinaryType .class ) })
52
+ @ TypeDef (name = "jsonb" , typeClass = JsonBinaryType .class ) })
55
53
public class ExternalMessage extends AbstractDomainObject {
56
54
57
55
public static final String TABLE_NAME = "externalmessage" ;
@@ -704,7 +702,7 @@ public void setDiagnosticDate(Date diagnosticDate) {
704
702
this .diagnosticDate = diagnosticDate ;
705
703
}
706
704
707
- @ Column
705
+ @ Column ( name = "activitiesascase" , columnDefinition = "jsonb" )
708
706
@ Type (type = "jsonb" )
709
707
public String getActivitiesAsCase () {
710
708
return activitiesAsCase ;
@@ -714,7 +712,7 @@ public void setActivitiesAsCase(String activitiesAsCase) {
714
712
this .activitiesAsCase = activitiesAsCase ;
715
713
}
716
714
717
- @ Column
715
+ @ Column ( name = "exposures" , columnDefinition = "jsonb" )
718
716
@ Type (type = "jsonb" )
719
717
public String getExposures () {
720
718
return exposures ;
0 commit comments