Working with stateless session in hibernate and jpa
When doing heavy read-only operations in with the database it can be a good idea to take advantage of using Hibernate’s Stateless Session As it name indicates this session does not keep state of the entities that it retrieves from the database and so it…
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…