Updated DDL, hbm fixed and integration hibernate test partially fixed.