About boolean

manual

Logical Operators in JPQL and Criteria API

Explains how to use AND, OR and NOT in JPQL queries.... in JPA criteria queries enable composition of complex JPQL boolean expressions out of simple JPQL boolean expressions. This page covers the following topics: ...

 
manual

JPA Persistable Types

Explains how JPA manages types, including entity classes, embeddable classes, primitive types, wrappers, string, date, enum, collections and maps.... types are persistable: Primitive types: boolean , byte , short , char , int , long , float and ... Equivalent wrapper classes from package java.lang: Boolean , Byte , Short , Character , Integer , Long , Float ...

 
manual

Database Schema Evolution

Explains how ObjectDB handles automatically schema changes.... values (the default). From any type to Boolean or boolean ( 0 , null and false are converted to false , any ...

 
api-jdo

getObjectById(oid, validate)

This method locates a persistent instance in the cache of instances managed by this PersistenceManager.(Method of javax.jdo.PersistenceManager)

 
api-jdo

getObjectsById(validate, oids)

Return the objects with the given oids.(Method of javax.jdo.PersistenceManager)

 
api-jdo

getObjectsById(oids, validate)

Return the objects with the given oids.(Method of javax.jdo.PersistenceManager)

 
api-jpa

javax.persistence.criteria.Expression

Type for query expressions.(Interface of JPA)

 
issue

ObjectDB enhancement fails on "is" form for @Transient boolean isLoaded(), ok for "getter" form @Transient boolean getLoaded()

Older objectdb-2.4.0_06, Java6. For the following (note the use of "is" form) in a class Element I encounter ObjectDB enhancement errors: ... ObjectDB enhancement errors: private boolean loaded = false ;   @ Transient @ Override public boolean isLoaded ( ) { return loaded ...

 
manual

Literals in JPQL and Criteria Queries

Describes literals in JPQL, including null, false, true, numbers, strings, dates enums and types.... supports various types of literals including NULL , boolean literals ( TRUE and FALSE ), numeric literals (e.g. 100 ), ... topics: The NULL literal Boolean Literals Numeric Literals String Literals ...

 
forum_thread

How to convert a boolean to an int in the query?

How to convert a boolean to an int in the query? I have five parameters of type boolean in the entity object - approveEmail, approvePhoneNumper, ... I can not sort them ORDER BY approveEmail, approvePhoneNumper, .... because the parameters equivalent. I want to sort them in the query by their sum ORDER BY (approveEmail + approvePhoneNumper + ... ) But I get an exception com.objectdb.o._PersistenceException: Invalid operand type boolean for operator + ... How to convert a boolean to an int in the query? I have five parameters of type boolean in the entity object - approveEmail, approvePhoneNumber, ... I ...