Shows you how to use @Column.
In this demo, there is exception throw:
java.sql.SQLSyntaxErrorException: Specified key was too long; max key length is 1000 bytes
To solve the problem, change the length using @Column annotation.
Source code: https://github.com/TinaXing2012/Hiber...