I have a JPA/Hibernate data model that I am using the Hibernate hbm2ddl tool to generate database DDL. I have some strings that should be CHAR and some that may be VARCHAR i
Annotate the strings you want to map to a CHAR in the database with @Column(columnDefinition="CHAR()").
@Column(columnDefinition="CHAR()")