エラー内容
| net.sf.hibernate.id.IdentifierGenerationException: ids for this class must be manually assigned before calling save() |
発生条件と原因
HibernateのマッピングファイルのidがDB側でいうところのPKにも関わらず、beanで値を代入していない場合に起きるエラー。
対処法
beanに値を入れれば解決するが、DB側でautoincrementを設定している場合は、idタグ内に<generator class="native" />を指定すればよい