Joined: Mon Feb 16, 2004 2:36 pm Posts: 12
|
Hi, I get this error when running a test case from my IDE.
If I deploy the same code to my server I do not get the error.
Im sure I am doing tomething wrong... Any help would be greatly appreciated.
Hibernate version:
2.1.3
Mapping documents:
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd">
<hibernate-mapping>
<class name="com.esage.agility.domain.propertyset.CustomProperty" table="CUSTOM_PROPERTY">
<jcs-cache usage="read-write"/>
<id column="CUSTOM_PROPERTY_ID" type="long" name="id" unsaved-value="null">
<generator class="identity"/>
</id>
<many-to-one name="owningProject" class="com.esage.agility.domain.Project" column="PROJECT_ID"/>
<many-to-one name="domain" class="com.esage.agility.domain.DomainValue" column="DOMAIN_ID"/>
<property name="propertyType" column="PROPERTY_TYPE" type="long"/>
<property name="propertyName" column="PROPERTY_NAME" type="string"/>
<property name="searchable" column="SEARCHABLE" type="boolean"/>
<property name="includeOnReports" column="INCLUDE_ON_REPORTS" type="boolean"/>
<many-to-one name="scope" class="com.esage.agility.domain.CaseType" column="SCOPE_ID"/>
<component name="displaySequence" class="com.esage.agility.domain.type.DisplaySequence">
<property name="displaySequence" column="DISPLAY_SEQUENCE" type="long"/>
</component>
</class>
</hibernate-mapping>
Code between sessionFactory.openSession() and session.close():
Full stack trace of any exception that occurs:
net.sf.hibernate.MappingException: No persister for: java.lang.Boolean
at net.sf.hibernate.impl.SessionFactoryImpl.getPersister(SessionFactoryImpl.java:344)
at net.sf.hibernate.impl.SessionImpl.getClassPersister(SessionImpl.java:2681)
at net.sf.hibernate.impl.SessionImpl.getPersister(SessionImpl.java:2688)
at net.sf.hibernate.impl.SessionImpl.getEntityIdentifierIfNotUnsaved(SessionImpl.java:2750)
at net.sf.hibernate.type.EntityType.disassemble(EntityType.java:115)
at net.sf.hibernate.impl.CacheEntry.disassemble(CacheEntry.java:36)
at net.sf.hibernate.impl.CacheEntry.<init>(CacheEntry.java:27)
at net.sf.hibernate.impl.SessionImpl.initializeEntity(SessionImpl.java:2203)
at net.sf.hibernate.loader.Loader.doQuery(Loader.java:240)
at net.sf.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:133)
at net.sf.hibernate.loader.Loader.doList(Loader.java:955)
at net.sf.hibernate.loader.Loader.list(Loader.java:946)
at net.sf.hibernate.hql.QueryTranslator.list(QueryTranslator.java:834)
at net.sf.hibernate.impl.SessionImpl.find(SessionImpl.java:1536)
at net.sf.hibernate.impl.SessionImpl.find(SessionImpl.java:1513)
at net.sf.hibernate.impl.SessionImpl.find(SessionImpl.java:1505)
at com.esage.agility.DAO.BaseDAO.executeQuery(BaseDAO.java:124)
Name and version of the database you are using:
MySql
|
|