About like

manual

Strings in JPQL and Criteria Queries

Explains string expressions in JPQL queries, including LIKE, LOCATE, LOWER, UPPER, TRIM, CONCAT and SUBSTRING.... This page covers the following topics: LIKE - String Pattern Matching with Wildcards LENGTH - Counting ... Criteria Query String Expressions LIKE - String Pattern Matching with Wildcards The [NOT] LIKE operator ...

 
issue

Issue with UPPER ?

Hi, Assuming those queries which are all the same except the UPPER calls: ... NOT NULL ) AND ( $4 . name LIKE '%81%' ) ) OR ( ( $5 IS NOT ... NULL ) AND ( $5 . postalCode LIKE '%81%' ) ) OR ( ( $5 IS NOT ...

 
api-jpa

like(x, pattern)

Create a predicate for testing whether the expression satisfies the given pattern.(Method of javax.persistence.criteria.CriteriaBuilder)

 
forum_thread

Help: After upgrading from 2.2.8_02 to 2.2.8_04, can't perform LIKE query

Hi,   During the upgrade from 2.2.8_02 (not sure if it was build 03/04 as I skipped 03) - my LIKE queries have stopped working. As an example output: ... (not sure if it was build 03/04 as I skipped 03) - my LIKE queries have stopped working during a regression test. As an example ... Query: SELECT $1 FROM Company $1 WHERE ((($1.companyId LIKE :p1) AND ($1.conditionOne=true)) AND ((($1.conditionTwo=false) OR ...

 
api-jpa

like(x, pattern)

Create a predicate for testing whether the expression satisfies the given pattern.(Method of javax.persistence.criteria.CriteriaBuilder)

 
issue

Different behavior for two equal queries

Hi, I've got two equal queries though they behave differently: SELECT FROM com.quasado.foundation.communication.contact.individual.IndividualContact $1 WHERE (($1.organisation.name LIKE '%Q%')) This correctly returns one entry from my database ... WHERE ( ( $1 . organisation . name LIKE '%Q%' ) ) This correctly returns one entry ... WHERE ( ( $1 . organisation . name LIKE '%Q%' ) OR ( $1 . communication . ...

 
forum_thread

Help with 'not like/lower' query

Hi again,   Honestly, I'm fairly new with JPA2 Criteria queries - but as far as code effort goes, it has saved me a bit of pain. I'm writing a dynamic query builder (only 1 level deep for basic entities) - but  even though I get most queries to work, I am getting the following error. This is using Criteria with a combination of LOWER/UPPER - NOT LIKE: ... is using Criteria with a combination of LOWER/UPPER - NOT LIKE: SELECT COUNT ( $1 . id ) FROM User $1 ... AND LOWER ( $1 . email ) NOT LIKE :p2 So in essence, I'm trying to do a count (with a ...

 
api-jpa

like(x, pattern, escapeChar)

Create a predicate for testing whether the expression satisfies the given pattern.(Method of javax.persistence.criteria.CriteriaBuilder)

 
api-jpa

like(x, pattern, escapeChar)

Create a predicate for testing whether the expression satisfies the given pattern.(Method of javax.persistence.criteria.CriteriaBuilder)

 
api-jpa

like(x, pattern, escapeChar)

Create a predicate for testing whether the expression satisfies the given pattern.(Method of javax.persistence.criteria.CriteriaBuilder)