Quote:
While technically this would work, I'm actually trying to make the updates driven from the mappings
Avoiding a totally workable solution just for the sake of "making the updates driven from the mappings" is a bit shortsighted IMHO. There is no construct to force the order of automatically generated SQL that I'm aware of. It does not and should not matter. If it does, you fall back to finer programmatic control, that's how frameworks behave.
I could make the case that utilizing a trigger in this manner is dangerous because it is not at all apparent to a maintainer what's happening when he reads the persistence code you're talking about writing. An explicit call to a stored proc would be much preferable for clarity and maintainability. A distant second would be an explicit persist call to the given associated entity.
-Chris