Originally posted by sudhakar Tadepalli:
How to find out whether caching is on/off. I used middlegen to create mapping files and pojo's.
Sudhakar
Look at your mapping files. If you've added a <cache /> element to your class then you are asking Hibernate to use the second level cache. The first level cache is (of course) always used. It shouldn't be that though. Is the only difference from your first failed attempt and your second successful one that you forced a commit after running your insert statement in Toad? Because, if I remember right, Toad is configured by default
not to commit after every statement.