As mentioned earlier, Ebean is a session ORM, so you don't need to think about sessions. Hibernate has a first level cache that cannot be disabled. This means that if you request an element through ORM and then delete it directly using SQL, it remains in the cache. You can explicitly clear the cache to get the latest results from the database, but, unfortunately, this behavior can lead to errors, for example, "deleted object passed for storage."
source share