user2413972
user2413972

Reputation: 1355

UTF8 support in Azure SQL Server

I read that need to use "nvarhar" for utf8 fields. But how to define it through Hibernate & Spring?

@Column(name = "TITLE", nullable = false)
private String title;

Upvotes: 0

Views: 424

Answers (1)

Jan Engelsberg
Jan Engelsberg

Reputation: 1087

If you want to make this change globally you can override the hibernate default mapping using the hibernate type registry: http://docs.jboss.org/hibernate/orm/3.6/reference/en-US/html/types.html#types-registry

Upvotes: 1

Related Questions