After listening to a nice talk about Spring Data JDBC and Doamin-Driven Design by Jens Schauder (as an AFOL I love your examples;-) I experimented a bit but get stuck quite soon with my domain types. Of course I need to write custom JDBC converters, for example to map a TelephoneNumber to String and back, but how do I handle more complex types like a period which has a LocalDate as start date and a LocalDate as end date. Or an address with street, house no, zip code, city...
I can not add annotations to these types, because the can have a different meaning depending on their use, for example an invoice address vs. a delivery address.
Using JPA/Hibernate a can use @Columns
or @AttributeOverrides
or implement a compound hibernate user type, but in Spring Data JDBC a found only simple converters.
Do I missed something or is this not (yet) possible with Spring Data JDBC?