You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ZoneId property using ZoneRegion type hint cannot be read back #2307
I have an entity with ZoneId property.
When I made parsing String value within ZoneId.of() method I've got ZoneRegion implementation class.
E.g Zone.of("Europe/Paris) -> ZoneRegion("Europe/Paris)
During the Writing entity everything goes fine and have next info in hashes:
3)"timezone"
4) "Europe/Paris"
5) "timezone._class"
6) "java.time.ZoneRegion"
Accordingly, when I try to read value - follow exception occurs:
ConverterNotFoundException: No converter found capable of converting from type [byte[]] to type [java.time.ZoneRegion]
Thanks for reporting the issue. The problem is on our side because we write a more concrete type hint (ZoneRegion instead of ZoneId) while we have only a converter for ZoneId registered. We can likely skip type hints on the reading side for types that are associated with a converter anyway as the persistent property provides sufficient details here.
Activity
mp911de commentedon Apr 20, 2022
Thanks for reporting the issue. The problem is on our side because we write a more concrete type hint (
ZoneRegioninstead ofZoneId) while we have only a converter forZoneIdregistered. We can likely skip type hints on the reading side for types that are associated with a converter anyway as the persistent property provides sufficient details here.[-]ZoneId property converting[/-][+]`ZoneId` property using `ZoneRegion` type hint cannot be read back[/+]Attempt early usage of custom converters.
Attempt early usage of custom converters.
Attempt early usage of custom converters.