Quote:
Providing you don't use any provider specific implementations that is... probably relying on TopLinks identity maps and a single application EntityManager would prevent you from switching to Hibernate JPA at a later time?
True.
Quote:
So is that feature available through JPA/TopLink essentials as well or just the full blown TopLink implementation?
Yep check the glassfish-persistence website.
Oracle donated toplink essentials to the glassfish project which is sun's reference implementation of J2EE5. So it's open source.
Quote:
It wasn't clear to me whether the cache they are talking about is equivalent to the JPA persistence context or something else. The cache overview describes TopLink as using two caches: a session cache and a unit of work cache. Do the identity map features you describe apply to both? Not sure. I guess I need to read more about the concept of sessions and caching in TopLink and then find out whether similar concepts apply to the JPA implementation.
As I understand it, the identity map ensures that within a single session, you always get the same object instance for each entity. So it relates to the session cache.
Not sure how this relates to the unit of work cache. Units of work are basically transactions right?
Tom.