I want to create a Entity in which there is a field of type Boolean. But according to XSD for entity-defintion in Moqui type of boolean is not defined. Is there a way to create a Boolean field in Entity?
I find the solution, all you have to do is add this property inside tag <database-list>
in MoquiDefaultConf.xml
.
<dictionary-type type="boolean" java-type="java.lang.Boolean" default-sql-type="BOOLEAN"/>
I am using PostgreSQL maybe its different in other database systems.
<dictionary-type type="boolean" java-type="java.lang.Boolean" default-sql-type="BOOLEAN"/>