Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » Possible Bug in Column Generation
Possible Bug in Column Generation [message #385759] Mon, 09 March 2009 18:33 Go to next message
Dick Smyte is currently offline Dick SmyteFriend
Messages: 1
Registered: July 2009
Junior Member
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!
Re: Possible Bug in Column Generation [message #385986 is a reply to message #385759] Tue, 10 March 2009 12:36 Go to previous message
James Sutherland is currently offline James SutherlandFriend
Messages: 1939
Registered: July 2009
Location: Ottawa, Canada
Senior Member

Sounds like it could be a bug. Could you include the full exception stack
trace.

---
James
http://www.nabble.com/EclipseLink---Users-f26658.html


James : Wiki : Book : Blog : Twitter
Previous Topic:JPA error on "primitive" property with "wrapped" field
Next Topic:EclipseLink 1.1RC3 errors while testing rcp example
Goto Forum:
  


Current Time: Fri Apr 26 12:39:58 GMT 2024

Powered by FUDForum. Page generated in 0.03065 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top