About like

71-80 of 200Refresh
Forum
1

java.sql.Date equals comparison not working with CriteriaAPI

value doesn't match any results in the database. Our code looks like this: CriteriaBuilder builder ... method of the created predicate yields in something like: $1.eintritt=2013-11-01 whereas as seen in my manual query string i do something like: $1.eintritt = {d '2013-11-01'} Any ideas
Forum
1

Listing large number of complicated objects with paging.

. The problem is, that running code that looks like this: TypedQuery icQuery = em.em ... -exec-3] DEBUG pl.hplxtool.dao.impl.ProductDAOImpl - Returning data Query manager builds plan like ... 50 records at a time. The funny thing is that in log from query manager fetchSize is like
Forum
1

Multi selection and distinct in a criteria query

hi, How can I realize multi selection with the criteria api concerning distinct? I.e. doing something like SELECT DISTINCT $1, $2 wouldn't work because I do only have something like criteria.multiselect(...) and nothing like builder.distinct(selection) so that I could do something like criteria
Forum
1

Order in WHERE Clause affects behaviour on DATE/DATETIME columns

, when querying the db with: Query q = JPA.em().createQuery("SELECT m FROM MyClass m WHERE m.myDate LIKE :query OR m.myText LIKE :query"); q.setParameter("query", "%myQuery%"); I ... : Query q = JPA.em().createQuery("SELECT m FROM MyClass m WHERE m.myText LIKE :query OR m.myDate LIKE
Forum
1

Query to search for common elements in two separate collections.

for identical members. Something like: SELECT o FROM Object o WHERE o.someCollection CONTAINS MEMBER OF :someCollection Is something like this possible in the JPA spec? A possible efficient way ... embeddable class that would wrap the collection with its hash code. Sounds like you are suggesting
Forum
1

slow performance for a complex query

Hi, We have a query that is constructed dynamically, an example is like this: SELECT DISTINCT $1 FROM CDI $1, Organisation $2, Organisation $3 WHERE ((UPPER($1.cdiId) LIKE 'THREAD14%') AND ((($1 ... ObjectDB. Is there any other way to specify execution order of query components for a complex query like
Forum
1

Soft Reference Object Cache Recommendation

", which I imagine might stand for something like "Page Access Group element". So, I eventually derive ... to see if evict() would allow the RAM to be flushed.  (e.g., code like the following.) private static final ... a failure again.  This time I captured a screenshot.  Looks like the uploaded attachment actually
Forum
1

Spring MVC Errors

/tbIsj.png and then when I try to start it anyways I get things like thaat: 2. http://i.imgur.com ... picture 1. It works, on server like it should but in eclipse I still have a error like ... and @PersistenceContext automatic one like in the Spring MVC Tutorial GuestBook...   3.) I'm using Tomcat and I don't
Issue
1

Unexpected Query Token / Casting in Query

.IndividualContactDebitorAccountFragment')).debitorAccount.bankAccounts.routingNumber) LIKE UPPER('%28%') results in the error ... .IndividualContactDebitorAccountFragment')).debitorAccount.bankAccounts.routingNumber) LIKE UPPER('%28 ... stills results in the same error so it's not because of the upper like I've again initially thought
Forum
1

Several parallel threads to speed up query on one DB

is the producer from DB (based on a query) and I would like to speed it up. I have tried using several entity managers (same DB instance) to benefit from the parallelisation - but it looks like I don't get much benefit from doing that.  I profiled the application - and it looks like there are some benefits - i.e