maykell wrote:
Tbut i'd like to know about why when i disable the hbm2ddl.auto property in the cfg file and set the id generator class to secuence, everything works well.
I don't really know. I would say the sequence thing is a big change since a select count can cause table locks and sequences will not do this. This is the same reason why Hi/Lo would be a solution because every time HB needs to reserve a key region and for the next n ids it will not need to go to database which reduces lock problems. I am not very familiar with oracle but you should be able to trace this by monitoring lock requests and lock timeouts with an Oracle profiling tool.
Farzad-