These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Comportement bizarre sur un champs BOOLEAN acceptant NULL
PostPosted: Thu Nov 15, 2007 1:38 pm 
Newbie

Joined: Thu Nov 15, 2007 1:30 pm
Posts: 1
J'ai un comportement bizarre que je n'arrive pas a comprendre .. si quelqu'un pouvais m'expliquer.

1- Voila dans une table MySQL j'ai un champs de type BOOLEAN, pouvant accepter NULL (oui c pas bien).
2- Dans mon mapping, j'ai pourtant mis not-null="false".
3- J'initialise une transaction
4- je fais une requete session.createQuery() pour lister "SELECT * ..."
5- puis je commit() ma transaction.

La chose bizarre, Hibernate execute un "UPDATE ..." pour faire que mes champs BOOLEAN aille une valeur ...
Comment expliquer et comment faire pour qu'il ne fasse rien ?

Merci par avance !

_________________
Nicolas BUI


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.