Do you have Tapestry-Module-Classes set up in the common module? 
https://tapestry.apache.org/autoloading-modules.html

The hibernate.cfg.xml and maven dependency to hibernate should be set up in the 
main module.
E.g.
<dependency>
    <groupId>org.hibernate</groupId>
    <artifactId>hibernate-c3p0</artifactId>
</dependency>


> The only issue I am having is that my code for hibernate doesn't seem to 
> work quite as expexted. Ideally, this should be picked up from the happylib 
>
> public static void 
> contributeHibernateEntityPackageManager(Configuration<String> 
> configuration) { 
>        configuration.add("com.my.package.myentities"); 
>    } 
>
> However I am finding it only seems to work for me if it's in the main 
> projects AppModule.java, perhaps I have configured something wrong, or 
> perhaps this has to be in app module rather than in my shared jar? 
>
> I've put the hibernate entities that are shared between the projects in 
> there and so ideally the code should be in the shared library rather than 
> duplicated in both webapps (although it works as it is... any ideas what 
> may cause that?) 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to