Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipselink-users] Converting Strings to Boolean

Hi Chris,
 
You can use an EclipseLink @ObjectTypeConverter to do this.
 
 
Cheers,
Guy
----- Original Message -----
Sent: Thursday, December 17, 2009 7:02 PM
Subject: [eclipselink-users] Converting Strings to Boolean

I've got a legacy database that I'm playing with and it has many fields in the tables that should be defined as a BIT rather than CHAR or VARCHAR, but it is what it is.

How can I have EclipseLink convert these fields, that contain simple 'Y' and 'N', to Boolean?

As always, thanks for the help...

Chris Mathrusse
christopher.mathrusse@xxxxxxxxxx


_______________________________________________
eclipselink-users mailing list
eclipselink-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/eclipselink-users

Back to the top