I like it, and i'd use it as soon as it's available.

it's a common requirement and would be good if it's part of tapestry not
third party libs.

Cheers,
Dragan Sahpaski



On Tue, Nov 15, 2011 at 11:30 AM, Taha Hafeez Siddiqi <
[email protected]> wrote:

> Hi
>
> I have cloned tapestry project at
>
> https://github.com/tawus/tapestry5
>
> and have added multiple database support.
>
> It is almost fully compatible with the previous version when using a
> single database except for a few things
>
> 1) HibernateConfigurer has changed
>
> public interface HibernateConfigurer
> {
>    /**
>     * Passed the configuration so as to make changes.
>     */
>    void configure(Configuration configuration);
>
>    /**
>     * Factory Id for which this configurer is meant for
>     */
>    Class<? extends Annotation> getMarker();
>
>    /**
>     * Entity package names
>     *
>     * @return
>     */
>    String[] getPackageNames();
> }
>
>
> 2) There is no HibernatePackageEntityService and packages can be added
> using HibernateConfigurer.
>
>
> For multiple database, a marker is to be used for accessing Session or
> HibernateSessionManager
>
> @Inject
> @XDB
> private Session session;
>
> @Inject
> @YDB
> private HibernateSessionManager sessionManager;
>
> @XDB
> @CommitAfter
> void myMethod(){
>
> }
>
>
> Would really appreciate your suggestions /comments
>
> regards
> Taha
>
>

Reply via email to