Code:
...
<!-- Hibernate SessionFactory -->
<bean id="sessionFactory"
class="org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean">
<property name="dataSource" ref="dataSource"/>
<property name="configLocation" value="classpath:hibernate/hibernate.cfg.xml"/>
<property name="hibernateProperties">
<props>
<prop key="hibernate.dialect">${hibernate.dialect}</prop>
<prop key="hibernate.show_sql">${hibernate.show_sql}</prop>
<prop key="c3p0.min_size">1</prop>
<prop key="c3p0.max_size">10</prop>
<prop key="c3p0.timeout">3</prop>
<prop key="c3p0.max_statements">50</prop>
<prop key="c3p0.idle_test_period">2</prop>
</props>
</property>
</bean>
...
Code:
<hibernate-configuration>
<session-factory>
<property name="hbm2ddl.auto">update</property>
<mapping class = "com.retalix.scm.wms.taskframework.common.entities.perssited.CoreTask" />
<mapping class = "com.retalix.scm.wms.taskframework.common.entities.perssited.LetdownTask" />
<mapping class = "com.retalix.scm.wms.taskframework.common.entities.perssited.TaskDelay" />
</session-factory>
<hibernate-configuration>
keep getting unknow entity at creation time , in debug i can see that sessionfactoryimpl doesn't hold anything in i'ts entityPersisters , it's not even binding to table because i inserted one row manualy and when retreiving it doesn't come back with anything ?
i'm using an applicationContext.xml that refrences other and trough spring and i know it is reading the .cfg.xml file because when i'm chaning something there i fail on parse exception ?
tried with annotatedclasses and configurationclass hibernate.cfg.annotationconfiguration ?
-- edit :
when i change to javax.perssitance.entity from hibernate's enitty it fails on loadup saying it can't find column with logical name ... tough column exists with exact name and table name is allso correct ?