Zdravim,

myslim, ze kdyz nastavujes konfiguraci Hibernate pres spring
konfigurak, musis vsem properties dat prefix "hibernate"

<property name="hibernateProperties">
<props>
 <prop key="hibernate.dialect">org.hibernate.dialect.PostgreSQLDialect</prop>
 <prop 
key="hibernate.cache.provider_class">org.hibernate.cache.NoCacheProvider</prop>
 <prop key="hibernate.show_sql">true</prop>
 <prop key="hibernate.current_session_context_class">thread</prop>
 <prop key="hibernate.hbm2ddl.auto">update</prop>
 <prop key="hibernate.generate_statistics">true</prop>
</props>
</property>

Koukal jsem, ze Tobe to u nekterych properties chybi... zejmena u
hibernate.hbm2ddl.auto, proto se Hibernate zrejme neporadilo vytvorit
ty tabulky automaticky.

S pozdravem, Petr Gola

On 13/07/06, Standa Valenta <[EMAIL PROTECTED]> wrote:

Po prozkoumani logu jsem zjistil, ze pokud pouziju  "hibrnate.cfg.xml"
konfiguracni soubor:

applicationContext.xml:
<beans>

   ...
    <bean id="sessionFactory"
class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
        <property name="configLocation"
value="classpath:hibernate.cfg.xml"/>
    </bean>


    <bean id="productDao" class="app.product.ProductDaoImpl">
        <property name="sessionFactory" ref="sessionFactory"/>
    </bean>
   ...
</beans>


vse funguje bez problemu. Ale proc, to nechapu...

Odpovedet emailem