Ich versuche, LocalDate
(und LocalDateTime
) Format in der Datenbank wie dd-MM-yyyy
zu setzen, die manchmal sehr nützlich ist. Stattdessen bekomme ich so etwas in H2 DB.Spring Data JPA Set LocalDate Format
aced00057372000d6a6176612e74696d652e536572955d84ba1b2248b20c00007870770e05000007e1010c0e1c1837131f0078
Ich versuchte @DateTimeFormat(pattern = "dd-MM-yyyy HH:mm")
aber nichts ändert zu verwenden.
@CreatedDate
@DateTimeFormat(pattern = "dd-MM-yyyy HH:mm")
private LocalDateTime created;
Ich verwende Spring MVC mit Spring Data BOM Hopper-SR1 (1.10.1) und H2 DB 1.3.156
Eine Datumsspalte hat kein Format – Jens