NutzCN Logo
问答 声明了@Readonly的属性,建表时还要执行@Comment吗?
发布于 2450天前 作者 Leewell1989 1753 次浏览 复制 上一个帖子 下一个帖子
标签: db
        @Column("BORROW_TIME")
	@Comment("借阅日期")
	@Readonly
	private String borrowTime;

如题,以上代码,既然@Column在建表时不执行,为啥@Comment要执行?这不是不一致吗?@Wendal

7 回复

贴日志看看

2017-08-10 12:00:53,413 DEBUG [localhost-startStop-1] o.n.d.i.s.r.NutDaoExecutor#log [113] comment on column YDM_PLEDGE_INFO.BORROW_TIME is '借阅日期'
2017-08-10 12:00:53,413 INFO [localhost-startStop-1] o.n.d.i.s.r.NutDaoExecutor#log [110] Can't identify SQL type :   comment on column YDM_PLEDGE_INFO.BORROW_TIME is '借阅日期'
2017-08-10 12:00:53,438 DEBUG [localhost-startStop-1] c.a.d.p.PreparedStatementPool#put [123] stmt enter cache
2017-08-10 12:00:53,445 DEBUG [localhost-startStop-1] o.n.d.i.s.r.NutDaoExecutor#exec [97] SQLException
com.ibm.db2.jcc.am.SqlSyntaxErrorException: DB2 SQL Error: SQLCODE=-205, SQLSTATE=42703, SQLERRMC=BORROW_TIME;DB2ADMIN.YDM_PLEDGE_INFO, DRIVER=4.16.53

嗯嗯,报个issue吧

fixed, 10分钟后应该就有快照版

好,好快 @_@

来自美丽的 NutzCN

我先注释掉了,等用正式版,快照版用maven自动化发布通过不了的。

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