[hibernate] add id constructor