The error message is wrong.
The session is not closed. And I want to evict the object because I don't want Hibernate to serialize the object everytime I make changes and flush. Also I don't want to evict because I get problems serializing Oracle CLOBs and BLOBs. I already fixed this problem and part of the solution was to evict the objects.
So now I have two choices:
1.- I don't work with CLOBs or BLOBs, let Hibernate serialize everytime I flush and I can use lazy initialization.
2.- I work with CLOBs or BLOBs, I serialize when I want the application to serialize and I don't use lazy initialization.
|