Skip to content

Commit

Permalink
Test fix : remove @GeneratedValue from jpa entity - no need for it in…
Browse files Browse the repository at this point in the history
… the test
  • Loading branch information
jbarrez committed Jul 17, 2024
1 parent 698b890 commit c0481e7
Showing 1 changed file with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@

import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.GeneratedValue;
import jakarta.persistence.GenerationType;
import jakarta.persistence.Id;
import jakarta.persistence.Table;

Expand All @@ -24,7 +22,6 @@
public class Message {

@Id
@GeneratedValue(strategy = GenerationType.AUTO)
@Column(name = "id", unique = true, nullable = false)
private Long id;

Expand All @@ -34,8 +31,15 @@ public Long getId() {
return id;
}

public void setId(Long id) {
this.id = id;
}

public String getText() {
return text;
}

public void setText(String text) {
this.text = text;
}
}

0 comments on commit c0481e7

Please sign in to comment.