Please check the JavaDoc. There are two properties which are "system-level". This is one of them.

Joseph Toth wrote:

Using hibernate 2.0.3

I initialize hibernate via a Properties object.
Configuration configuration = new Configuration().addClass(Panel.class).setProperties(properties);
sessionFactory = configuration.buildSessionFactory();


When I put hibernate.cglib.use_reflection_optimizer=false as a property it does not work.

But if I create hibernate.properties in my classpath, and put hibernate.cglib.use_reflection_optimizer=false in it, it does work.

Is this a bug? Or can I only use this property in hibernate.properties?

Thanks







-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
hibernate-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hibernate-devel




-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
hibernate-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hibernate-devel

Reply via email to