Sachin Verma
Sachin Verma

Reputation: 3812

Hibernate cache while updating

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

Answers (1)

kostja
kostja

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

Related Questions