Possible Bug in Column Generation [message #385759] |
Mon, 09 March 2009 14:33  |
Eclipse User |
|
|
|
Hi guys,
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:
@Id
@Column(name="ENROLMENT_ID",columnDefinition="CHAR(15)")
private String homeEnrolmentID;
This gives the error:
Exception in thread "main" javax.persistence.PersistenceException:
Exception [EclipseLink-7008] (Eclipse Persistence Services - 1.0.2 (Build
20081024)): org.eclipse.persistence.exceptions.ValidationException
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?
Thanks so much for any help!
|
|
|
|
Powered by
FUDForum. Page generated in 0.29149 seconds