Breeze / breeze.server.java

Breeze support for java servers
MIT License
15 stars 3 forks source link

How to pre-save process (BeforeSaveEntities) the entities #3

Closed Dhana-Krishnasamy closed 8 years ago

Dhana-Krishnasamy commented 9 years ago

It looks like HibernateContext is hard wired inside SaveService. Thus I don't find a clean way to inject a Context into SaveService. Was SaveService meant to be inherited to inject new Context/HibernateContext? Thanks

steveschmitt commented 8 years ago

Sorry nobody replied to this. The server implementation has changed significantly since you posted the question. Take a look at the SaveProcessor documentation for information about how to pre-process the entities before saving.