jmix
jmix copied to clipboard
Decide what java type to use for audit fields
Currently audit fields added by Studio (lastModifiedDate and createdDate) have java.util.Date
type.
Two concerns about that:
- The
java.util.Date
is a legacy datatype and it's not a good that we force users to use it. - We should decide do we need to store the timezone value for audit fields. From one point of view we should because in this case we can always get the exact point in time when the instance was created or modified. From another point of view we may consider these fields as service dates that are always stored in server timezone. In any case we should mention it somewhere in the documentation, because developer may use these fields not properly.