Skip to content

Support java.time.Instant and java.util.UUID types #693

Closed
@x80486

Description

@x80486

Description

While testing Doma (and using java.time.Instant and/or java.util.UUID types) I'm always getting error messages like:

[DOMA4096] The class "java.util.UUID" is not supported as a persistent type. If you intend to map the class to the external domain class with @ExternalDomain, the configuration may be not enough. Check the class annotated with @DomainConverters and the annotation processing option "doma.domain.converters".
[DOMA4096] The class "java.time.Instant" is not supported as a persistent type. If you intend to map the class to the external domain class with @ExternalDomain, the configuration may be not enough. Check the class annotated with @DomainConverters and the annotation processing option "doma.domain.converters".

I think these two should be supported out-of-the-box by the framework since they are used widely for id and timestamp fields.

The same goes with java.time.ZonedDateTime.

Implementation Ideas

N/A

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions