Custom converter for Mongodb and Spring Data for BigDecimal type
Recently I found that MongoDB does not support java’s java.math.BigDecimal as you can read in the official spring data mongodb documentation As it turns out java.math.BigDecimal will be converted to java.lang.String when saved to the database and parsed back to BigDecimal which in most cases…
Spring boot and mongodb with geo-localisation queries 1/3
MongoDB offers a number of indexes and query mechanisms to handle geospatial information, below are some of the features offered by the database : Surfaces Location Data Query Operations Geospatial indexes ….. More detailed information can be found at their website : MongoDB Geospatial queries…
Spring Data force version and lastmodified date to update on JPA Entity
Spring data has a feature that allows you to track automatically a certain amount of fields through annotations : @CreatedDate : The date on which the entity was created @CreatedBy : The user that created the entity @LastModifiedDate : The date the entity was last…