About SECOND

manual

Date and Time in JPQL and Criteria Queries

Shows how date and time can be used in JPQL queries.... YEAR , MONTH , DAY , HOUR , MINUTE and SECOND . For example: YEAR({d '2011-12-31'}) ... is evaluated to 59 . SECOND({t '23:59:00'}) is evaluated to 0 . Date and ...

 
api-jpa

javax.persistence.criteria.CriteriaBuilder

Used to construct criteria queries, compound selections, expressions, predicates, orderings.(Interface of JPA)

 
forum_thread

a second mapping-file is ignored in persistence.xml by enhancer

Hello Support-Team, we have a problem with the enhancer. In the persistence.xml are two mapping-files: <mapping-file>META-INF/orm.xml</mapping-file> <mapping-file>META-INF/ormreq.xml</mapping-file> We start the enhancer and the entities of orm.xml will be enhanced by following output: ... Why the second mapping-file is ignored?   The unit test has ... the -pu option to specify a persistence unit in which the second orm file is defined? If you do, please describe how exactly you ...

 
forum_thread

Using of Second Level Cache

In our use case we want to find some entity types always again very quickly by primary key or query in many short transactions. The entity MyEntity1 and its relationships to MyEntity2/MyEntity3 was load and the entity MyEntity1 is taken in the second level cache, the other entity types not. Are the relationships to MyEntity2/MyEntity3 still always referenced although the entity manager is closed, so that the memory for MyEntity2 and MyEntity3 can never be released by garbage collector? ... was load and the entity MyEntity1 is taken in the second level cache, the other entity types not. Are the relationships to ...

 
forum_thread

Enforce Second Level cache

In my application I have an entity with few transient Collection fields, these are constantly updateing very fast and access to those fields is needs to be fast too, thus I dont persist them (also this information is temporary and doesent need to be kept). I suppose that entity modified is the same that is cached in 2nd level cache. so that if i request that entity again I will get actually the same object with already ready state. Not sure about this but please leave your comment on this (is it really the same object kept in cache).... #1 2014-05-16 13:44 In my application I have an entity with few transient Collection fields, these are constantly updateing very fast ...

 
manual

Comparison in JPQL and Criteria API

Explains how comparison operators can be used in JPQL queries, including in comparing null values.... for testing whether the first argument is greater than the second. See JavaDoc Reference Page... ( name, nameParam ) ... for testing whether the first argument is greater than the second. See JavaDoc Reference Page... ( name, "India" ...

 
forum_thread

Insertion Speed Rate and Batch Load

1. I got about 10K inserts / second, is it normal? I would expect more than that, like close to 100K/second. I can definitely do 80K inserts/seconds on Oracle with batch insert on table with one primary key. 2. Is batch update/insert operation supported? I attached the files. ... 1. I got about 10K inserts / second, is it normal? I would expect more than that, like close to 100K/second. I can definitely do 80K inserts/seconds on Oracle with batch insert on ...

 
forum_thread

Remove a modified entity cause an optimistic lock exception

Hello, the following examples load and modify an entity, and load and remove the same entity. The first example 'SetAndRemoveIssue.java' is a simple java program which executes without errors. The second example is an OSGi program which fails with an optimistic lock exception. Both examples are equivalent, please execute SetAndRemoveIssue.java (in the OSGi example as a plugin-test). Can you explain the optimistic lock exception? ... java program which executes without errors. The second example is an OSGi program which fails with an optimistic lock ... first simple example second OSGi example edit ...

 
manual

WHERE clause (JPQL / Criteria API)

Explains how to use the WHERE clause in a JPQL query.... for testing whether the first argument is greater than the second. See JavaDoc Reference Page... ( c. get ... ) ; Multiple Restrictions The second where method takes a variable number of arguments of Predicate ...

 
api-jpa

gt(x, y)

Create a predicate for testing whether the first argument is greater than the second.(Method of javax.persistence.criteria.CriteriaBuilder)