表的实体类能定义索引吗,可以通过dao.create(DbLog.class, false);创建索引吗
7 回复
@TableIndexes({@Index(name = "INDEX_STORE_USER_LOGINNAMAE", fields = {"loginname"}, unique = true)})
收到,谢谢,nutz很棒
@TableIndexes({ @Index(name = "INDEX_T_DBLOG_USERID", fields = { "userid" }, unique = false),
@Index(name = "INDEX_T_DBLOG_CREATETIME", fields = { "createTime" }, unique = false) })
谢谢 @Wizzercn @wendal
添加回复
请先登陆