66import lombok .Getter ;
77import lombok .NoArgsConstructor ;
88import lombok .Setter ;
9+ import org .hibernate .annotations .JdbcTypeCode ;
10+ import org .hibernate .type .SqlTypes ;
911import java .time .Instant ;
1012import java .util .UUID ;
1113
@@ -64,8 +66,8 @@ public class AgentTemplate {
6466 /**
6567 * Agent identity definition (issuer, subject prefix, certificate authority)
6668 */
67- @ Lob
68- @ Column (columnDefinition = "JSONB " )
69+ @ JdbcTypeCode ( SqlTypes . JSON )
70+ @ Column (columnDefinition = "jsonb " )
6971 private String identity ;
7072
7173 /**
@@ -83,10 +85,11 @@ public class AgentTemplate {
8385 /**
8486 * JSON object defining constraints, limits, and safety boundaries
8587 */
86- @ Lob
87- @ Column (columnDefinition = "JSONB " )
88+ @ JdbcTypeCode ( SqlTypes . JSON )
89+ @ Column (columnDefinition = "jsonb " )
8890 private String guardrails ;
8991
92+
9093 /**
9194 * Reference to ATPL trust policy ID that should be applied
9295 */
@@ -95,8 +98,8 @@ public class AgentTemplate {
9598 /**
9699 * Launch-specific configuration (resources, environment variables, etc.)
97100 */
98- @ Lob
99- @ Column (columnDefinition = "JSONB " )
101+ @ JdbcTypeCode ( SqlTypes . JSON )
102+ @ Column (columnDefinition = "jsonb " )
100103 private String launchConfiguration ;
101104
102105 /**
0 commit comments