Now that Ben has demonstrated feasibility in
TRUNK-1930, we should consider moving more functionality from save handlers into hibernate interceptors. (Hibernate interceptors don't require specific conventions for method names, and are probably less error-prone.)
This could definitely be done in an interceptor:
- OpenmrsObjectSaveHandler assigns a UUID to any OpenmrsObject that doesn't have one.
This might be possible to move to an interceptor (but it should probably be done in such a way that objects that parent and child objects get identical dateCreated values):
- AuditableSaveHandler sets creator/dateCreated