Skip to content

Commit

Permalink
Use json to save on storage in db
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexProgrammerDE committed Jan 1, 2025
1 parent 281e9a2 commit b263cb2
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@
import lombok.Getter;
import lombok.Setter;
import org.hibernate.annotations.CreationTimestamp;
import org.hibernate.annotations.JdbcTypeCode;
import org.hibernate.annotations.UpdateTimestamp;
import org.hibernate.type.SqlTypes;

import java.time.Instant;
import java.util.List;
Expand Down Expand Up @@ -69,6 +71,7 @@ public class InstanceEntity {
@Column(nullable = false)
private AttackLifecycle attackLifecycle = AttackLifecycle.STOPPED;

@JdbcTypeCode(SqlTypes.JSON)
@Convert(converter = InstanceSettingsConverter.class)
@Column(nullable = false)
private InstanceSettingsImpl settings = InstanceSettingsImpl.EMPTY;
Expand Down

0 comments on commit b263cb2

Please sign in to comment.