[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[List Home]
|
[eclipselink-users] @Column, length and string truncation
|
- From: "Joe Mc." <m_joe_c@xxxxxxxxxxx>
- Date: Tue, 27 Oct 2009 06:29:05 -0700 (PDT)
- Delivered-to: eclipselink-users@eclipse.org
Hi,
I have annotated a field for example with the following annotation:
@Column(name="lastMessage", length=255)
String message;
Further I insert in this field strings longer as 255 chars.
The SQL Server throws an exception, cause the string is to long.
Why does not Eclipselink truncate the string value to the specified length
(here: 255) before the SQL Insert?
Does an other (configurable) ways exist?
Thanks
McJoe
Basic data:
- Eclipselink 1.1.1
- SQL Server 2005
- Java 5/6
--
View this message in context: http://www.nabble.com/%40Column%2C-length-and-string-truncation-tp26077771p26077771.html
Sent from the EclipseLink - Users mailing list archive at Nabble.com.