I've been using the columnDefinition attribute on the Column annotation to
try and specify what I want my columns to be like.
I've had no problems until I tried to do it to a Primary Key Column:
private String homeEnrolmentID;
This gives the error:
Exception in thread "main" javax.persistence.PersistenceException:
Exception [EclipseLink-7008] (Eclipse Persistence Services - 1.0.2 (Build
Exception Description: The Java type [null] is not a valid database type.
I have no idea whats wrong, it works fine with columns that do not have
the @Id annotation. Is there a different way to specify Column properties
when its a Primary Key?