Hi All,

I have a problem with a boolean field in a bean and so far I have been unable to understand why. I hope you have some clues.

When I create a MySQL table based upon the class of the bean, then it is working. I have a column of type BIT for the corresponding boolean field. When I save objects in the table it is working. When the field is true I have a bit to 1 in the corresponding column and a zero otherwise. When I use some queries filtering (with a where clause) on this boolean field then it is working.

But, when I am restoring a bean, I always get false for my boolean field. So, I had a look to my getters and setters and it looks like the setter is always called with an argument set to false so I assume the problem is not in my bean ?

I have put no constraint on the boolean field.

I have another related question : when I look at Elephant where some beans have boolean field, I see that the getter is sometime written isXXX or getXXX. Both are equivalent ?

Regards,
Christophe.




        

        
                
___________________________________________________________________________ Nouveau : téléphonez moins cher avec Yahoo! Messenger ! Découvez les tarifs exceptionnels pour appeler la France et l'international.
Téléchargez sur http://fr.messenger.yahoo.com
_______________________________________________
Rife-users mailing list
[email protected]
http://lists.uwyn.com/mailman/listinfo/rife-users

Reply via email to