issues
search
ranjithkumarravikumar52
/
issue-tracker
spring boot, spring mvc, MySQL, H2 and thymeleaf issue tracker app
0
stars
0
forks
source link
Implement recent activity for the current logged in user in home page
#117
Open
ranjithkumarravikumar52
opened
5 years ago
ranjithkumarravikumar52
commented
5 years ago
ranjithkumarravikumar52
commented
5 years ago
Resources
User activity logging
Hibernate mapping date and time
Another article on hibernate mapping
ranjithkumarravikumar52
commented
5 years ago
To-do
Persistence layer
Use java.time (java 8 feature which is perfectly balanced to work with JDBC and different db providers)
Add LocalDateTime for creation and update fields for issue entity
Map creation with @CreationTimestamp
Map update with @UpdateTimestamp
Service layer
if create and update have equal values then the issue is newly created
if create and update differ then issue is updated
write a query to get recent 5 issues that either got created/updated
post the results in the home page
Tests
Check when issue gets updated the update fields get changed while creation remains unchanged