开发者

Hibernate running random queries

开发者 https://www.devze.com 2022-12-21 19:47 出处:网络
All, when I first call buildSessionFactory, Hibernate seems to be running a bunch of queries on my DB. They vary from being \"selects\" to \"insert\"s. Why is this and开发者_StackOverflow社区 how can

All, when I first call buildSessionFactory, Hibernate seems to be running a bunch of queries on my DB. They vary from being "selects" to "insert"s. Why is this and开发者_StackOverflow社区 how can I stop it?

Edit: After some review, no the queries are not random. They seem to be inserts, selects and deletes into the tables on my DB. It almost looks like Hibernate is inserting a few records, running selects to make sure they were inserted and then deleting them.


When the session manager starts it generates and caches a standard set of CRUD queries for the mapped objects. What you're seeing is (probably) just the logging of this query generation activity.

0

精彩评论

暂无评论...
验证码 换一张
取 消