Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » TableDefinition: calls Helper.truncate with a negative size
TableDefinition: calls Helper.truncate with a negative size [message #389728] Wed, 24 June 2009 08:02 Go to next message
Christian Eugster is currently offline Christian EugsterFriend
Messages: 134
Registered: July 2009
Location: St. Gallen Switzerland
Senior Member
Hi,

I have a table called colibri_common_settings with a fk field
common_settings_default_product_group_id.

When I try to create a derby database using create=true as an option in
the url (jdbc:derby:cache;create=true) I get a
StringIndexOutOfBoundsException:

Because in
org.eclipse.persistence.tools.schemaframework.TableDefinitio n.buildForeignKeyConstraintName
line 446 this method calls Helper.truncate() after shortened the fk
fieldname. Because the shortened fieldname (23) is still longer than the
maximumNameLength (18) the computed size is negative (-5).

Is this an issue or have I to shorten my field names?

Thanks in advance

Christian
Re: TableDefinition: calls Helper.truncate with a negative size [message #389739 is a reply to message #389728] Thu, 25 June 2009 13:39 Go to previous message
James Sutherland is currently offline James SutherlandFriend
Messages: 1939
Registered: July 2009
Location: Ottawa, Canada
Senior Member

It looks like this was fixed recently, at least in the main stream. You
might want to try the latest 1.1 or 2.0 build.

Otherwise, you could shorten your field name as a workaround until you
upgrade.

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


James : Wiki : Book : Blog : Twitter
Previous Topic:EclipseLink 1.1.2 Released in Galileo
Next Topic:CascadeType=ALL does not result in ON DELETE CASCADE?
Goto Forum:
  


Current Time: Mon Nov 24 04:10:45 GMT 2014

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

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