Hibernation: Level 1 Cache

Can someone tell me how I can look at session-driven objects in Hibernate?

I am trying to use the eclipse debugger and am drilling into a persistenceContext , but I'm not sure that it would be there that I would find objects controlled by a hibernate session.

Can someone tell me how to find out objects that are managed by Hibernate objects?

Thank.

+3
source share
1 answer

Do you want to use this information simply for your own benefit and training? You will not be able to access the information, as far as I know, in any standard JPA-approved method.

, Hibernate, Hibernate PersistenceContext.java, StatefulPersistenceContext.java. . , Hibernate.

...

private Map entitiesByKey;
private Map proxiesByKey;
private Map collectionsByKey;

: " " Eclipse , .

+2

All Articles