【发布时间】:2015-03-13 17:06:51
【问题描述】:
我读到需要对 utf8 字段使用“nvarhar”。但是如何通过 Hibernate & Spring 来定义呢?
@Column(name = "TITLE", nullable = false)
private String title;
【问题讨论】:
标签: sql-server spring hibernate azure azure-sql-database
我读到需要对 utf8 字段使用“nvarhar”。但是如何通过 Hibernate & Spring 来定义呢?
@Column(name = "TITLE", nullable = false)
private String title;
【问题讨论】:
标签: sql-server spring hibernate azure azure-sql-database
如果您想在全局范围内进行此更改,您可以使用休眠类型注册表覆盖休眠默认映射:http://docs.jboss.org/hibernate/orm/3.6/reference/en-US/html/types.html#types-registry
【讨论】: