Fixed id problem with hibernate
Merge pull request #59 from TKosch/hotfix

Fixed id problem with hibernate