Imagine i have following class:
class Test {
String name
static mapping = {
cache true
version false
}
The goal would be to insert rows using native sql on the database level so hibernate wouldn’t recognize those changes. how can i notifiy hibnerate about this new rows?
Is there something like -> Test.clearCache?
Though it’s a deprecated way, it’s shorter and still works.
Documentation is here, see it for the up-to-date way with
Cache.