users
[Top] [All Lists]

hibernate and max field lengths

To: <users@xxxxxxxxxx>
Subject: hibernate and max field lengths
From: "Arnett, Matt" <Matt.Arnett@xxxxxxxxxx>
Date: Fri, 29 Jul 2005 15:32:59 -0400
Delivered-to: mailing list users@cinjug.org
Mailing-list: contact users-help@cinjug.org; run by ezmlm
Thread-index: AcWUdFPa4fJu2ZaFSjiyuc97/CjImQ==
Thread-topic: hibernate and max field lengths

Is there a way to have hibernate automatically trim field lengths that exceed the maximum as dictated by the database?  If you try to persist a field that exceeds a maximum length you get a very helpful java.lang.NullPointerException.

Thanks,
-Matt

 


This e-mail transmission contains information that is intended to be confidential and privileged. If you receive this e-mail and you are not a named addressee you are hereby notified that you are not authorized to read, print, retain, copy or disseminate this communication without the consent of the sender and that doing so is prohibited and may be unlawful. Please reply to the message immediately by informing the sender that the message was misdirected. After replying, please delete and otherwise erase it and any attachments from your computer system. Your assistance in correcting this error is appreciated.
<Prev in Thread] Current Thread [Next in Thread>