How do I specify CGLIB and not JAVASSIST?
I have
the following properties:
Code:
<properties>
<property
name="hibernate.connection.datasource"
value="java:/MailingPlatformDS" />
<property
name="hibernate.dialect"
value="org.hibernate.dialect.MySQLDialect" />
<property
name="hibernate.connection.driver_class"
value="org.gjt.mm.mysql.Driver" />
<property
name="hibernate.connection.url"
value="jdbc:mysql://localhost:3306/mailingPlatform?autoReconnect=true&noAccessToProcedureBodies=true" />
<property
name="hibernate.connection.username"
value="root" />
<property
name="hibernate.connection.password"
value="aam2" />
<property
name="hibernate.connection.provider_class"
value="org.hibernate.connection.DatasourceConnectionProvider" />
<property
name="hibernate.transaction.manager_lookup_class"
value="org.hibernate.transaction.JBossTransactionManagerLookup" />
<property
name="hibernate.transaction.flush_before_completion"
value="true" />
<property
name="hibernate.transaction.auto_close_session"
value="true" />
[b] <property
name="hibernate.bytecode.provider"
value="cglib" />
[/b]
</properties>
</persistence-unit>
Is there any other place where I need to specifiy this?
The error I am getting is:
Can not set static javassist.util.proxy.MethodFilter field com.aam2.sky.beans.Role_$$_javassist_0._method_filter to org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer$1