[英]JDO Datanucleus: Annotator @Column(jdbcType=“”) not working
I noticed that this type of annotation does not work. 我注意到这种类型的注释不起作用。 In my example I had set:
在我的示例中,我设置了:
@Column(jdbcType="VARCHAR(5)")
private String id;
but in the db saves me how: VARCHAR(255). 但是在数据库中为我节省了方法:VARCHAR(255)。
How can I fix? 我该如何解决?
You should use: 您应该使用:
@Column(jdbcType="VARCHAR", length=5)
private String id;
From the documentation here: http://www.datanucleus.org/products/accessplatform/jdo/annotations.html#Column 从此处的文档中: http : //www.datanucleus.org/products/accessplatform/jdo/annotations.html#Column
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.