NutzCN Logo
问答 SQL without entity
发布于 3251天前 作者 milixiang 2754 次浏览 复制 上一个帖子 下一个帖子
标签:
Caused by: java.lang.RuntimeException: SQL without entity : SELECT	m.* FROM	meeting m LEFT JOIN meeting_user mu ON m.id = mu.meeting_id WHERE	mu.user_id =  1 ORDER BY	m.add_time DESC LIMIT 0, 20
	at org.nutz.lang.Lang.makeThrow(Lang.java:99)
	at org.nutz.dao.impl.sql.callback.EntityCallback.invoke(EntityCallback.java:20)
	at org.nutz.dao.impl.sql.NutSql.onAfter(NutSql.java:133)
	at org.nutz.dao.impl.sql.run.NutDaoExecutor._runSelect(NutDaoExecutor.java:234)
	at org.nutz.dao.impl.sql.run.NutDaoExecutor.exec(NutDaoExecutor.java:43)
	at org.nutz.dao.impl.DaoSupport$DaoExec.invoke(DaoSupport.java:264)
	at org.nutz.dao.impl.sql.run.NutDaoRunner.run(NutDaoRunner.java:64)

sql.setCallback(Sqls.callback.entities());
dao.excete(sql);
sql.getList(meeting.class) ; 不是这样的吗?

2 回复

sql.setEntity

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