when I user hibernate find by Id, I get these two sql command:
Code:
session.load(clazz, id);
session.flush();
Hibernate: select titlepo0_.titleId as titleId0_, titlepo0_.modifyDate as modifyDate0_, titlepo0_.titleName as titleName0_, titlepo0_.description as descript4_0_, titlepo0_.comment as comment0_, titlepo0_.creator as creator0_, titlepo0_.createDate as createDate0_, titlepo0_.modifier as modifier0_ from title titlepo0_ where titlepo0_.titleId=?
Hibernate: update title set creator=?, modifier=? where titleId=?
where dose the second command come from?