Well I dont really see any entities defined in your config.

btw did you tell tapestry where to lock for the entities? You should
provide an a method in AppModule.java

@Contribute(HibernateEntityPackageManager.class)
    public static void
addHibernateEntityPackageManager(Configuration<String> configuration) {
        configuration.add("my.package");
    }

There is a default path where you can put it if you dont want to provide a
method

Read more http://tapestry.apache.org/hibernate-core-conf.html



On Thu, May 16, 2013 at 5:11 PM, Andjela Djenic <andjel...@yahoo.com> wrote:

>
>
> Here is my hibernate.cfg.xml file:
>
> <!DOCTYPE hibernate-configuration PUBLIC
>         "-//Hibernate/Hibernate Configuration DTD 3.0//EN"
>         "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd
> ">
> <hibernate-configuration>
>     <session-factory>
>         <property
> name="hibernate.connection.driver_class">com.mysql.jdbc.Driver</property>
>         <property
> name="hibernate.connection.url">jdbc:mysql://localhost:3306/library</property>
>         <property
> name="hibernate.dialect">org.hibernate.dialect.MySQLDialect</property>
>         <property name="hibernate.connection.username">root</property>
>         <property name="hibernate.connection.password">books</property>
>         <property name="hbm2ddl.auto">update</property>
>         <property name="hibernate.show_sql">true</property>
>         <property name="hibernate.format_sql">true</property>
>         <property
> name="hibernate.transaction.factory_class">org.hibernate.transaction.JDBCTransactionFactory</property>
>
>         <property
> name="hibernate.current_session_context_class">thread</property>
>     </session-factory>
> </hibernate-configuration>
>
> Thanks,
> Angela




-- 
Sincerely
*Boris Horvat*

Reply via email to