@Entity class Configure { ... @Version private Timestamp version; ... }
with this orm.xml <version name="version"> <column column-definition="datetime2(7) NOT NULL"/> </version>
generate this scheme: create table [Configure] ( ... [version] [datatime2(7) NOT NULL] ... )
this is wrong. it should not be warped with '[]'.
If I remove orm.xml, and add @Column(columnDefinition="datetime2(7) NOT NULL") to the field version.
it generate this scheme create table [Configure] ( ... [version] datetime2, ... )
this is wrong too!.
|
|