NutzCN Logo
问答 复合主键的update的问题
发布于 3256天前 作者 qq_e636d015 4037 次浏览 复制 上一个帖子 下一个帖子
标签: dao

QQ截图20151224120614_png
问题如上
代码如下:

@Table("PlayerShoppingNum")
@PK(value = { "id,period,goodsId" })
public class PlayerShoppingNum {
	/*** id**/
	@Column("id")
	@Comment("id")
	private int id;
。。。。
           PlayerShoppingNum playerShoppingNum = playerShoppingManager.getPlayerShoppingNum(1, goodsId, periodId);
			playerShoppingNum.setPlayerId(playerId);
			playerShoppingNum.setShoppingId(shoppingId);
			 dao.update(playerShoppingNum);
2 回复
@Pk({"id","xxx","yyy"})

哦,i see,谢谢Wendal

添加回复
请先登陆
回到顶部