[Hibernate] Many-to-one relationship where parent class is same as child

2007-06-05 Thread javed mandary
Hibernate version: 3.1.3 Name and version of the database you are using: Oracle 10 Hi I have a question regarding how many-to-one relationship should be defined where the parent class is same type as the child class. Person table - - name - surname - na

Re: [Hibernate] java.lang.OutOfMemoryError: PermGen space

2007-06-05 Thread Jeoff Wilks
My bad. To turn off cglib you need to set it as a system-level property. java -Dhibernate.cglib.use_reflection_optimizer=false http://www.hibernate.org/hib_docs/v3/reference/en/html/session-configuration.html#configuration-misc-properties hibernate.cglib.use_reflection_optimizer=false Enables/dis

Re: [Hibernate] java.lang.OutOfMemoryError: PermGen space

2007-06-05 Thread Jeoff Wilks
http://docs.jboss.org/jbossas/jboss4guide/r2/html/ch13.html#ch13.config.table hibernate.cglib.use_reflection_optimizer=false Set this in hibernate.properties, as a java system property, or by calling Configuration#setProperty() directly. You can postpone the problem a bit using the java command

Re: [Hibernate] java.lang.OutOfMemoryError: PermGen space

2007-06-05 Thread John Mitchell
Jeff, Thanks for the info! How do I turn off CGLIB? Thanks, John Mitchell On 6/4/07, Jeoff Wilks <[EMAIL PROTECTED]> wrote: Every time the CGLIB Enhancer generates a new class, that generated class jumps straight to the PermGen (permanent generation) of your java heap. CGLIB Enhancers are f