change userhistory from value to component, using one to many and many to one xml mapping,

use inverse= true and cascade  = save-update