Jean-Baptiste Nizet Awesome, thanks for trying it out! I have noticed that occasionally too wrt HHH000072, but have been so heads down trying to get ready for the 5.0.0 Beta release that I have not yet had time to look closer. I will get to it.
Jean-Baptiste Nizet Out of curiosity, what is "Spring integration"?
Jean-Baptiste Nizet Did you just let Hibernate set everything up and let it pick the types based on the attribute's Java type? That's the main thing here. Once that all happens, schema generation and other stuff will just flow. Although I will say that for schema export etc Hibernate does not generally use "with timezone" variants of date/time. Which brings me too...
There is a discussion on the dev mailing list right now wrt these types and handling timezones. IMO we really ought to be leveraging the power of these new classes and converting everything to UTC (if not already in UTC) for storing. And then reading back in UTC. My personal belief is that "this idea of trying to store and handle dates in different timezones is silly, and more importantly that it is asking for trouble". If anyone has strong opinions, they might want to chime in on that email thread.
|