문제

When to use each? To what do they map in the database?

도움이 되었습니까?

해결책

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 encodings for a Java boolean or java.lang.Boolean.

다른 팁

Follow true_false, if you like T/F at database level. Otherwise, use yes_no, it will give you Y/N in the database.

By the way, got to know that there are some issues with these, which result in unexpected value. For example here and here, Few seems fixed already in successive updates, though.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top