Hello,

The description of the problem is this (simplified):
- my object has ID (mapped as <id> tag) and LABEL property (column)
- need to change LABEL between calculating/getting its ID and
performing INSERT (not sure if NH gets ID, for example from oracle
sequence or increment generator, before actually saving entity, please
correct me if I am wrong)
- callback needs to be set at the session level (not configuration or
session factory), whole session, or ideally registered/unregistered at
specific time
- during the session I am saving many other types, the operation can
only affect certain type

I was searching around for answers and looks like interceptors or
event-listeners could help, but it looks like interceptors cannot
change the object and listers have to be at the config/factory level.
If I am wrong, which of the two would you recommend? I am right - is
there another solution?

Thanks,
Andrzej
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to