Just a matter of bandwidth. Also, I prefer not to create modules for things I'm not actively using. I currently use Hibernate in both my client projects, but don't use JPA. I or someone else could throw something together, or take a contribution, but I'd prefer to have someone who actively maintains and improves whatever library is created.
I've seen in infrastructures that make it very easy to create and distribute libraries or modules, such as Ruby Gems, you see an awful lot of incomplete, outdated and orphaned code. On Wed, Jun 2, 2010 at 9:20 AM, Piero Sartini <[email protected]> wrote: >> That's not too hard; the tricky part is the replication of several >> services with the same interface; i.e., you will need an @Product >> HibernateConfigurer and a @Content HibernateConfigurer, etc. >> >> This could all be done, and done on top of tapestry-hibernate without >> changing the framework, I think. The only tricky part is that the >> default HibernateConfigurer assumes that you start by reading >> hibernate.cfg.xml and that would need to be more flexible >> (hibernate-products.cfg.xml, hibernate-session.cfg.xml). > > I've thought about implementing this functionality in tapestry-jpa as well. > With JPA we don't have the problem of the configuration as everything > is configured inside persistence.xml. Auto discovery is already > handled by most implementations. No need to do all the configuration > magic present in the hibernate module. > > If you want to introduce some way to handle multiple databases in the > hibernate module, maybe it would be a good timeframe to create a > tapestry-persistence module which can be used by other modules like > tapestry-jpa or tapestry-mongodb as well. I am thinking mainly about > annotations like @CommitAfter. But the interface to handle multiple > data sources should be reusable as well. > > On a side note, maybe its time for tapestry to get first class JPA2 support? > > Piero > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > -- Howard M. Lewis Ship Creator of Apache Tapestry The source for Tapestry training, mentoring and support. Contact me to learn how I can get you up and productive in Tapestry fast! (971) 678-5210 http://howardlewisship.com --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
