EclipseLink offers @ReturningInsert and @ReturningUpdate and I think it would be nice if Hibernate did offer these annotations too. There are a lot of legacy applications that have triggers which generate values on columns and with these annotations one could express that these values should be returned into the entity either on insert or update. |