About true

manual

Logical Operators in JPQL and Criteria API

Explains how to use AND, OR and NOT in JPQL queries.... A valid operand of an AND operator must be one of: TRUE, FALSE , and NULL . The following table shows how the ...   TRUE FALSE NULL ...

 
manual

Literals in JPQL and Criteria Queries

Describes literals in JPQL, including null, false, true, numbers, strings, dates enums and types.... types of literals including NULL , boolean literals ( TRUE and FALSE ), numeric literals (e.g. 100 ), string literals (e.g. ... to Java and SQL, JPQL supports two boolean literals - TRUE and FALSE . Since JPQL is case insensitive, TRUE is equivalent to ...

 
manual

Comparison in JPQL and Criteria API

Explains how comparison operators can be used in JPQL queries, including in comparing null values.... FALSE TRUE != TRUE FALSE Comparison ...

 
issue

NPE using AND TRUE in WHERE clause

The following (dynamically generated) query causes an NPE: SELECT e FROM Event e WHERE e.account=:account AND TRUE When I change it to a trivial term which evaluates to true, it works fine: SELECT e FROM Event e WHERE e.account=:account AND 1=1 Here is the stack trace: ... Event e WHERE e . account = :account AND TRUE When I change it to a trivial term which evaluates to true, it works fine: SELECT e FROM Event e WHERE e . ...

 
forum_thread

orphanRemoval = true not working when CascadeType.REMOVE is disabled

Dear all, I have entities Employee and Address, their relation is defined (full example in attachment): @Entity     public static class Employee { ....         @OneToMany(orphanRemoval = true)         private Set<Address> addresses; I'm expecting, that removing Employee from db, addresses has been too, but I can see, that the Address is still: ... @ OneToMany ( orphanRemoval = true ) private Set<Address> addresses ; ...

 
forum_thread

Changing existing objects from Entity to Embedded

Hi, I realised that I have a mistake (from application logic point of view) in one of my JDO metadata files: ... <field name = "attributes" embedded = "true" > <map embedded-key = "true" embedded-value = "true" /> </field > ...

 
api-jpa

isTrue(x)

Create a predicate testing for a true value.(Method of javax.persistence.criteria.CriteriaBuilder)

 
api-jdo

javax.jdo.Transaction

The JDO Transaction interface provides for initiation and completion of transactions under user control.(Interface of JDO)

 
forum_thread

EntityManagerFactory Fails To Swtich Over To Slave When Master Is Unavailable

I have a simple task to validate the sample code will switch over to the slave database when the master is unavailable. I simulate the master unavailable by stopping the master server; which generates the following exception below. What am I doing wrong? It appears the connection manager fails to try the second URL in the list: objectdb://10.9.2.15:9998//10.9.2.15:9999/test.odb;user=admin;password=password Thank you in advance. ... <url - history size = "50" user = "true" password = "true" / > <log path = "$objectdb/log/" max ...

 
forum_thread

TemporalType injection with Calendar using JPA

I have ObjectDB  JPA  comsummed by a RESTful web service deployed on Tomcat. I am using an embedded object as a primary key, which has time fields which I have annotated with TemporalType.TIMESTAMP When I use a java.util.Date as a field on this object there is no problem. However, if I use a java.util.Calendar it encounters an exception.   Calendar is what I need.  Is there something obvious here that I am failing to see?   #1 2011-05-30 17:15 I have ObjectDB  JPA  comsummed by a RESTful web service deployed on Tomcat. I am using an embe ...