Reputation: 3812
Need I care about hibernate session cache while I am doing just insert(write) operations?
Ignore what's down, just to meet SO quality standard:
BiteMe bite=new BiteMeToo("");
bite=null;
bite.letsBite(); //NullPointerException
Upvotes: 0
Views: 41
Reputation: 61578
If you never ever read from the DB during the same session/transaction and do not use extended persistence contexts, you do not have to care about cache contents.
Upvotes: 1