-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: hibernate not binding anything
PostPosted: Wed Jan 16, 2008 2:33 am 
Beginner
Beginner

Joined: Sat Oct 20, 2007 8:28 am
Posts: 28
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 ?


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.