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