No row with the given identifier exists: [com.morik.gm.domain.TGroup#二]

No row with the given identifier exists: [com.morik.gm.domain.TGroup#2]

No row with the given identifier exists 在谷歌翻译的意思是 在行中没有给定的标识符。

刚开始觉得是bean和数据库里的表没有对应,其实不是。问题是关联的表中没有一条记录导致的错误。

在我的这个例子中要在TGroup对应的表里添加相应的记录即可。。。。。