I have two questions
first :-
How we can arrange our all data on the basis of date in mysql using hibernate
Like if i have entries based on date
12-03-2016
13-03-2017
15-06-2019
So when i add new like 14-08-2018 so my updated database will be like
12-03-2016
13-03-2017
14-08-2018
15-06-2019
Anyone know how i can do this using hibernate
second :-
i want to retrieve data from mysql table using hibernate
like if i want to extract some data from given dates how can i do this
| 2003-02-11 |
| 2003-02-12 |
| 2003-02-13 |
| 2003-02-14 |
| 2003-02-15 |
| 2003-02-16 |
like from this i want data from 2003-02-11 to 2003-02-15 how can i extract it
answer be like
| 2003-02-11 |
| 2003-02-12 |
| 2003-02-13 |
| 2003-02-14 |
| 2003-02-15 |
i want to do it using hibernate