This is the first time I have a Java model object with about 1500 properties and I'm getting the following error during compile:
Code:
12:52:53,840 - ERROR [ContainerBackgroundProcessor[StandardEngine[Catalina]]] (LavaBeanUtils.java:24) -
Unable to load bean 'lavaDao' from application contextorg.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'lavaDao' defined in ServletContext resource [/WEB-INF/context/core/core-dao.xml]:
Cannot resolve reference to bean 'transactionManager' while setting bean property 'transactionManager';
nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager' defined in ServletContext resource
[/WEB-INF/context/local/pedi/pedi-env-tomcat6.xml]: Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory';
nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource
[/WEB-INF/context/core/core-dao.xml]: Invocation of init method failed; nested exception is net.sf.cglib.core.CodeGenerationException:
java.lang.reflect.InvocationTargetException-->null
I know that MySQL InnoDB tables have a 1000 column limit, so I split the model object into two tables, with table 1 having about 960 columns and table 2 having the rest. It appears to be a problem with the number of properties because when I reduce the properties down to below 1000 everything compiles and runs fine, but when I add more I get the above error. The error code suggest the hibernate session and/or transaction can't handle so many properties? But I'm sure someone out there has needed to have a model object with more than 1000 properties. I can't find any attribute in hibernate.properties that would be related to this, either. Or could this be a Spring related issue?
Thanks for any advice/help.