|
Here is my mapping file:
<class
name="com.thoughtworks.asexchange.jdo.Login"
identity="loginId">
<description>Login</description> <map-to table="login" /> <field name="loginId" type="string"> <sql name="loginid" /> </field> <field name="password" type="string"> <sql name="password" /> </field> <field name="roles" type="string" collection="set" required="true"> <sql many-table="LoginRole" many-key="loginId" name="roleName" /> </field> </class> when I run I get the following error:
java.lang.NullPointerException
at org.exolab.castor.persist.ClassMolder.<init> at org.exolab.castor.persist.ClassMolder.resolve(ClassMolder.java:513) at org.exolab.castor.persist.LockEngine.<init> at org.exolab.castor.persist.PersistenceEngineFactory.createEngine(PersistenceEngineFactory.java:83) at org.exolab.castor.jdo.engine.DatabaseRegistry. at org.exolab.castor.jdo.engine.DatabaseRegistry. at org.exolab.castor.jdo.engine.DatabaseRegistry.loadDatabase(DatabaseRegistry.java:317) at org.exolab.castor.jdo.JDO.getDatabase(JDO.java:538) ... If I comment out the collection mapping, the
application runs just fine.
Regards,
Simon |
