Skip to content

Commit

Permalink
refactor: include Book entity at Hazelcast as Serializable implementa…
Browse files Browse the repository at this point in the history
…tion

Signed-off-by: Otavio Santana <otaviopolianasantana@gmail.com>
  • Loading branch information
otaviojava committed May 19, 2023
1 parent a9b9e8e commit 180914b
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,10 @@
import jakarta.nosql.Entity;
import jakarta.nosql.Id;

import java.io.Serializable;

@Entity
public record Book(@Id String id, @Column("title") String title, @Column("edition") int edition) {
public record Book(@Id String id, @Column("title") String title, @Column("edition") int edition) implements Serializable {


}

0 comments on commit 180914b

Please sign in to comment.