diff --git a/src/main/java/guru/springframework/sfgrestdocsexample/domain/Beer.java b/src/main/java/guru/springframework/sfgrestdocsexample/domain/Beer.java index 7e8f36c9..5884b93b 100644 --- a/src/main/java/guru/springframework/sfgrestdocsexample/domain/Beer.java +++ b/src/main/java/guru/springframework/sfgrestdocsexample/domain/Beer.java @@ -3,6 +3,7 @@ import lombok.*; import org.hibernate.annotations.CreationTimestamp; import org.hibernate.annotations.GenericGenerator; +import org.hibernate.annotations.Type; import org.hibernate.annotations.UpdateTimestamp; import javax.persistence.*; @@ -25,6 +26,7 @@ public class Beer { @GeneratedValue(generator = "UUID") @GenericGenerator(name = "UUID", strategy = "org.hibernate.id.UUIDGenerator") @Column(length = 36, columnDefinition = "varchar", updatable = false, nullable = false) + @Type(type="uuid-char") private UUID id; @Version diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index 8b137891..5cb2ef46 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -1 +1,4 @@ +logging.level.org.springframework.web=DEBUG +spring.h2.console.enabled=true +