How to create a BOOLEAN column in MySql using Eclipselink
In my @Entity class I have defined a boolean property named reservable:
@Column(name="reservable", columnDefinition = "boolean default true") private boolean reservable;
It is always a column of type TINYINT(1) with default value 1 created. How can I tell Eclipselink to generate a table column of type BOOLEAN in MySql?
MySQL (5.x) doesn't know about a BOOLEAN type.
These types are synonyms for TINYINT(1). A value of zero is considered false. Nonzero values are considered true.
- A Linux, Apache, MySQL, PHP (LAMP) stack is a combination of open source software that is typically installed together to enable a server to host dynamic […]
- MySQL is an the most popular open-source database management system, in most of hosting company its has been bundle by LAMP(Linux, Apache, MySQL, PHP/Python/Perl) stack. Another alternative […]
- MySQL is the world’s most popular open-source database. Despite its powerful features, MySQL is simple to set up and easy to use. Below are some instructions […]