|
From: Rod J. <ro...@in...> - 2005-03-14 18:27:44
|
> Good point, the criteria should be how often they are likely to be used, not > that they are new. Agreed on that. So, how often are they likely to be used? > :-) I think these new methods are potentially useful, and an important enhancement in Hibernate 3 which would allow advising Hibernate persistent objects etc. So I would favour adding them. > What's your opinion on direct Session access, Colin? The same option exists > not only with JDO, but also with the forthcoming EJB3 EntityManager: All > those could be accessed directly if one accepts the non-generic (but at > least unchecked) data access exceptions getting thrown. Spring would > essentially just provide DAO wiring and transaction management here, which > some people might like: no wrapping of the perfectly good Hibernate (or JDO > or EntityManager) API going on there ;-) I think exception translation is very important to the value proposition. I don't think we should encourage raw session access. Exception translation is a very important value add. R |