[ACCEPTED]-Differerence between hibernate types: boolean, yes_no, true_false-types
Accepted answer
Follow true_false
, if you like T
/F
at database level. Otherwise, use 5 yes_no
, it will give you Y
/N
in the database.
By 4 the way, got to know that there are some 3 issues with these, which result in unexpected 2 value. For example here and here, Few seems fixed 1 already in successive updates, though.
from Hibernate: http://docs.jboss.org/hibernate/stable/core.old/reference/en/html_single/#mapping-types-basictypes
boolean, yes_no and true_false are all alternative 1 encodings for a Java boolean or java.lang.Boolean.
Source:
stackoverflow.com
More Related questions
Cookie Warning
We use cookies to improve the performance of the site. By staying on our site, you agree to the terms of use of cookies.