Skip to main content



      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 04:02 Go to next message
Eclipse UserFriend
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 09:39 Go to previous message
Eclipse UserFriend
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
Previous Topic:EclipseLink 1.1.2 Released in Galileo
Next Topic:CascadeType=ALL does not result in ON DELETE CASCADE?
Goto Forum:
  


Current Time: Wed Jul 23 06:24:39 EDT 2025

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

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

Back to the top