|
From: <jue...@we...> - 2003-04-15 10:09:02
|
Hi everyone, Here at werk3AT, we are using Hibernate in combination with Spring = successfully in a current major project: Spring for configuration, = general service infrastructure, validation, and test infrastructure = (mock JNDI + mock JDBC DataSource) - and Hibernate for persistence. We = will add Spring's web MVC and transaction infrastructure soon. A HibernateTemplate that applies Spring's callback approach to Hibernate = Sessions - implementing a doInSession(Session) method, without the need = for Session lifecycle and exception handling - helps reducing glue code = significantly. I plan to contribute it to Spring soon, enriched by a = Hibernate implementation of PlatformTransactionManager (handling = transactions via Hibernate's native transaction API for a single = SessionFactory, using a ThreadLocal Session). So, would anyone mind a Hibernate JAR in our development lib directory? = I consider a separate module for those few classes overkill, so I'd like = to add them to the main source tree. But what package would such stuff = belong to, maybe "com.interface21.orm.hibernate" (ORM for Object = Relational Mapping)? Our jdbc package is on the same level as the dao = package too, instead of below it, so this should fit the existing = structure. A forthcoming JdoTemplate or the like would belong to = "com.interface21.orm.jdo" then. Hmmm, "ORM" isn't too appropriate here, = as JDO isn't restricted to O/R mapping, strictly speaking... but "object = persistence" doesn't have an obvious short name. What's a suitable = generic term for both dedicated O/R mappers like Hibernate/OJB/TopLink = and JDO implementations? Any suggestions? Regards, Juergen DI J=FCrgen H=F6ller Senior System Architect ______________________________________ werk3ATS - division systementwicklung part of werk3AT internetmedien oeg europaplatz 4 A - 4020 linz t. +43 (0) 732 71 65 29 502 f. +43 (0) 732 71 65 29 3 jue...@we... www.werk3at.com ______________________________________ werk3ATS - WIR ENTWICKELN ERFOLG |