Java – the data type I should use to map to Boolean values

I want to map the DB column to a Boolean value in hibernate Which data type should I use to map it?

tiny int?

I'll use reverse mapping in NetBeans to generate POJOs

Solution

Use bit (1) in MySQL and Boolean in Java objects

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>