Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

声明了@Readonly的属性,建表时仍要执行@Comment #1298

Closed
Leewell1989 opened this issue Aug 10, 2017 · 0 comments
Closed

声明了@Readonly的属性,建表时仍要执行@Comment #1298

Leewell1989 opened this issue Aug 10, 2017 · 0 comments
Assignees
Labels
Milestone

Comments

@Leewell1989
Copy link
Contributor

Leewell1989 commented Aug 10, 2017

@Column("BORROW_TIME")
@Comment("借阅日期")
@Readonly
private String borrowTime; 
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 

既然@column在建表时不执行,@comment应该也不执行。

@wendal wendal added this to the 1.r.63 milestone Aug 10, 2017
@wendal wendal added the Dao label Aug 10, 2017
@wendal wendal self-assigned this Aug 10, 2017
@wendal wendal closed this as completed in 30c0a53 Aug 10, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants