Skip to content

Commit

Permalink
Value too long for column issue
Browse files Browse the repository at this point in the history
  • Loading branch information
mmouly committed Dec 11, 2024
1 parent 893df7c commit f23c91a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Lob;
import javax.persistence.Table;

import org.slf4j.Logger;
Expand All @@ -34,13 +35,15 @@
public class RegistrationEntity {
private final static Logger LOGGER = Environment.getLogger();

@Id
@Id
@Column(name="ID")
private String id;


@Column(name="LAST_UPDATE")
private long lastUpdate;

@Lob
@Column(name="DEFINITION")
private String definition;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Lob;
import javax.persistence.Table;

import org.slf4j.Logger;
Expand All @@ -46,6 +47,7 @@ public class UsageEntity {
@Column(name="TIMESTAMP")
private long timestamp;

@Lob
@Column(name="DEFINITION")
private String definition;

Expand Down

0 comments on commit f23c91a

Please sign in to comment.