weblogic server maps boolean fields in Entity Beans to varchar2(1) field in database as '0' and '1'. Are these mappings part of EJB specifications or are these addons provided by the servers? If they are mentioned in ejb specifications , I would like to know where
I am using weblogic with oracle driver and oracle db. I am now converting my boolean fields in Entity beans to Strings. I will try to see if the getter / setter methods can still return boolean arguments otherwise i will have to do major changes in my jsp codes [This message has been edited by mohit joshi (edited November 10, 2000).]
why not convert the boolean values to integer values? that way, you can use two static final attributes, perhaps intTrue and intFalse to represent a true and false value for an integer (maybe the values 1 and 0 respectively). I think there would be less overhead than using Strings that way, and there would be a direct mapping for an integer to your database. I hope that helps.
What's a year in metric? Do you know this metric stuff tiny ad?
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth