Added Account Lock Implementation using EntityManager
Added createdAt attribute in Account
Changed spring-context and validation-api dependencies to spring-boot-starter-validation in order to use the starters from spring boot
Added Identity Strategy in ID of AccountJpaEntity
Note: Was not possible to implement that using@Lock from Spring Data JPA because of transactions and there is no support to lock and release entity through annotation, that's why was used EntityManager
EntityManager
createdAt
attribute inAccount
spring-context
andvalidation-api
dependencies tospring-boot-starter-validation
in order to use the starters from spring bootAccountJpaEntity
Note: Was not possible to implement that using
@Lock
from Spring Data JPA because of transactions and there is no support to lock and release entity through annotation, that's why was usedEntityManager