personalweb

archived
git clone git://git.wimdupont.com/personalweb.git
Log | Files | Refs | LICENSE

commit 67e9617e22a972b078d9d5d738224b9e98ce59d6
parent 1a30abc5eda9cebde2238a771707bbfccbcd2c2a
Author: Wim Dupont <wim@wimdupont.com>
Date:   Sat, 20 May 2023 11:51:08 +0200

sb update


Former-commit-id: 36b19762bcf54d13a95277699654f1285e7725a3
Diffstat:
Mpom.xml | 2+-
Msrc/main/java/com/wimdupont/personalweb/model/dao/Book.java | 6++----
2 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/pom.xml b/pom.xml @@ -5,7 +5,7 @@ <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> - <version>3.0.7</version> + <version>3.1.0</version> </parent> <groupId>com.wimdupont</groupId> <artifactId>personalweb</artifactId> diff --git a/src/main/java/com/wimdupont/personalweb/model/dao/Book.java b/src/main/java/com/wimdupont/personalweb/model/dao/Book.java @@ -1,17 +1,15 @@ package com.wimdupont.personalweb.model.dao; import jakarta.persistence.Entity; -import jakarta.persistence.GeneratedValue; import jakarta.persistence.Id; -import org.hibernate.annotations.GenericGenerator; +import org.hibernate.annotations.UuidGenerator; @Entity public class Book { @Id - @GeneratedValue(generator = "uuid") - @GenericGenerator(name = "uuid", strategy = "uuid") + @UuidGenerator private String id; private String title;