| To: | users@xxxxxxxxxx |
|---|---|
| Subject: | Re: [cinjug-users] Hibernate and DB2 trimming CHAR fields |
| From: | Trey Howard <trey.howard@xxxxxxxxxxxx> |
| Date: | Wed, 13 Sep 2006 15:42:26 -0400 |
| Delivered-to: | mailing list users@cinjug.org |
| In-reply-to: | <f775f68efae5.4507cec9@insightbb.com> |
| Mailing-list: | contact users-help@cinjug.org; run by ezmlm |
| References: | <f775f68efae5.4507cec9@insightbb.com> |
| User-agent: | Thunderbird 1.5.0.5 (Windows/20060719) |
You should be able to write a customer Hibernate UserType that would perform your truncation. I found some code in the Hibernate forums that did something very similar with transforming Strings: http://www.hibernate.org/169.html -Trey twcrone@xxxxxxxxxxxxx wrote: > Does anyone know of a setting in Hibernate or something else that will > cause all CHAR fields returned to String fields to be trimmed > automatically? > > Thanks > > -Todd |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Hibernate and DB2 trimming CHAR fields, twcrone |
|---|---|
| Next by Date: | :SPAM: Hey RahmBreonnabjygpiuyp@xxxxxxxxxxxxxx, revilatizes your hair/nail growth, Users |
| Previous by Thread: | Hibernate and DB2 trimming CHAR fields, twcrone |
| Next by Thread: | :SPAM: Hey RahmBreonnabjygpiuyp@xxxxxxxxxxxxxx, revilatizes your hair/nail growth, Users |
| Indexes: | [Date] [Thread] [Top] [All Lists] |