I was trying to do a simple unit test and I can't get it to run because I
get

testAddAndRemoveIncidentAttachment(com.csc.ctms2.dao.IncidentNoteAttachmentDaoTestCase)
Time elapsed: 0.047 sec  <<< ERROR!
org.springframework.orm.hibernate3.HibernateSystemException: Unknown entity:
com.csc.ctms2.model.IncidentNoteAttachment; nested exception is
org.hibernate.MappingException: Unknown entity:
com.csc.ctms2.model.IncidentNoteAttachment
    at
org.springframework.orm.hibernate3.SessionFactoryUtils.convertHibernateAccessException(SessionFactoryUtils.java:661)
    at
org.springframework.orm.hibernate3.HibernateAccessor.convertHibernateAccessException(HibernateAccessor.java:412)


I've seen the bug report on this, but I am already using appfuse full
source, and my version is 2.0.2

I'm kind of unclear on what I have to move or change in regards to
persistence.xml and the hibernate cfg file.

The class is using the javax.persistence.Entity and the entity is listed in
the hibernate.cfg.xml file.

But it's invisible during the tests.

Reply via email to