It seems that some people have not read my answer correctly, so I will rephrase: your hibernate.properties looks right, the property is well defined, it should work. So sorry for the question, but is CGlib on the way to classes?
Update: Just tested, and it works for me. Here is the result that I get when initializing:
15 [main] INFO org.hibernate.cfg.Environment - Hibernate 3.3.0.SP1
18 [main] INFO org.hibernate.cfg.Environment - loaded properties from resource hibernate.properties: {hibernate.bytecode.use_reflection_optimizer = false, hibernate.bytecode.provider = cglib}
20 [main] INFO org.hibernate.cfg.Environment - Bytecode provider name: cglib
PS: Please note that CGLIB support has recently been deprecated (this does not mean that you cannot use CGLIB, but integration is not supported anymore).
Pascal thivent
source share