Skip to content

Commit

Permalink
Update Image.java
Browse files Browse the repository at this point in the history
  • Loading branch information
Fa8Bit committed Jan 6, 2025
1 parent 68bdc90 commit 09ba653
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main/java/de/unistuttgart/memorybackend/data/Image.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

import jakarta.persistence.*;
import lombok.*;
import org.hibernate.annotations.JdbcTypeCode;

import java.sql.Types;
import java.util.UUID;

@Entity
Expand All @@ -19,6 +22,6 @@ public class Image {

private UUID uuid;

@Column(name = "picByte", columnDefinition="bytea")
@JdbcTypeCode(Types.VARBINARY)
private byte[] picByte;
}

0 comments on commit 09ba653

Please sign in to comment.