Joined: Sun Jan 24, 2010 4:20 pm Posts: 13
|
Hi.
EclipseLink has a nice feature which in practice eliminates lazy-load exceptions. It reconnects to the configured datasource for the respective entity-manager when loading an un-initialized proxy.
Is the Hibernate-team considering to implement this? Hibernate should have all info it needs to do this and as a programmer I really shouldn't be bothered if the db-connection is closed or not when navigating my model. Hibernate should just open a non-tx connection and fetch whatever it needs.
I have made an AspectJ-proxy implementing this if anyone is interessted, but this should really be feature provided by the persistence-provider IMO.
-- Andreas
|
|