SimplePath<byte[]>
. This means it is not possible to (or at least I haven't figured out how to) order query results in ascending order based on the time-based UUID key. It seems like mapping the UUID columns to something like ComparablePath<UUID>
would be more appropriate.I can get the UUID columns to map to java.util.UUID
instead of byte[]
as follows:
<typeMappings>
<typeMapping>
<table>FOO</table>
<column>ID</column>
<type>java.util.UUID</type>
</typeMapping>
</typeMappings>
As per here, however the final mapped type is still SimplePath<UUID>
. Is there anyway to customize the mapping to force it to be ComparablePath<UUID>
?
Thanks,
Brian