big change 2

Change domain classes to be good with hibernate and change id's type to
integer to be compatible with auto increment technology in hibernate and
cascade changes .