JavaWeb ids for this class must be manually assigned before calling save(): 原因是主键id没有自动生成, 最好是自动生成: 如果是配置Hbm文件,可以加入<...