0

I'd like to use org.hibernate.tool.hbm2ddl.SchemaExport from hibernate-core 4.1.4 to generate/export a Sybase ASE 15.5 schema where specific columns should be created as UNIVARCHAR instead of the regular VARCHAR data type. How do I do that? My preferred way is to use annotations.

user1050755
  • 11,218
  • 4
  • 45
  • 56

1 Answers1

0

By giving SQL fragment as a value of columnDefinition attribute in Column annotation.

For example:

@Column(name="columnName", columnDefinition="univarchar(50)")
Mikko Maunu
  • 41,366
  • 10
  • 132
  • 135