In hibernate caching, If I execute a query ,that result set will be stored in Cache,
Later ,it is used if the same query is executed
1)If I have a table with 50 Records and I used select statement to select all records in the table, after the query executed, if result set is cached by Hibernate, then I add some data into the table, again I execute the same query, how the hibernate will handle this scenario, whether it will execute query fresh and cache the result ? or some other best way???
Later ,it is used if the same query is executed
1)If I have a table with 50 Records and I used select statement to select all records in the table, after the query executed, if result set is cached by Hibernate, then I add some data into the table, again I execute the same query, how the hibernate will handle this scenario, whether it will execute query fresh and cache the result ? or some other best way???