What have been done:
- Updated email html template from Oscar.
- Fixed the exception where Clock used in Special class cannot be saved into MongoDB.
Problems encountered:
- Exception triggered while saving Special class to DB: “Can’t find a codec for class java.time.Clock$SystemClock.”.
Solution:
- Use the annotation @Transient on the Clock property to prevent Spring Framework mapping
- Use the annotation @Builder on an empty contructor to prevent
Lombok automatic mapping. Refer to link below:
https://stackoverflow.com/questions/30717640/how-to-exclude-property-from-lombok-builder