I\'m saving twitter tweets in my database with spring JPA Repositories. The date of the tweet is saved as Datetime in the MySQL db. Now I want to delete all tweets that are
Compute the current time minus one year in Java, and then use the follwoing query:
DELETE FROM Tweetpost t WHERE t.createdAt < :nowMinusOneYear