hibernate-delta

I added the changes for hibernate-delta but they should be useful by themselves.