Trying to implement entity management ... need some help

9 views
Skip to first unread message

Robert Brendler

unread,
Aug 8, 2011, 6:35:30 AM8/8/11
to dpHibernate
Hi all,

I am currently trying to implement an entity manager with the provided
IEntityManager interface for HibernateManaged.entitymanager to have
unique instances on the client side.

I think I got pretty far already but I am a bit lost with all the
asynchronous processes. I don't really see the
big picture yet when which listener is supposed to act.

could someone draw me a quick uml sketch on how response to
saveBean(), lazy/loadProxy() etc. is supposed to work. I am having the
problem that all my entities are getting undermined by incoming
entites. I was trying to hook into any listener I could find and add a
HibernateManaged.entityManager.getEntity(proxyWithKey) to get a
reference to the stored object that is supposed to be updated, but
still, at some point these little sckrs are sneaking into my PM.

This especially happens with lazy loading collection attributes. Ones
the attribute is requested other instances get stored.

cheers,
rob
Reply all
Reply to author
Forward
0 new messages