@PK({"id","account","yunaccount"})复合主键没效果{@Id int appid;
@Column int id; @Column String account; @Column String yunaccount;
怎么体现出"没效果"?
@wendal PRIMARY KEY (appid)) ENGINE=InnoDB DEFAULT CHARSET=utf8;
appid
so, 不能同时加个@Id呗...
但你可以加索引
@TableIndexs(@Index(field={"id","account","yunaccount"}, name="pks"))