About MIN

manual

GROUP BY and HAVING clauses

Explains how to use the GROUP BY and HAVING clauses in a JPA/JPQL query.... Aggregate calculations (count, sum, avg, max, min) that are carried out on all the objects (or the object tuples) in the ... of numeric values as a double value. MIN - returns the minimum of comparable values (numeric, strings, dates). ...

 
api-jpa

min(x)

Create an aggregate expression applying the numerical min operation.(Method of javax.persistence.criteria.CriteriaBuilder)

 
manual

JPA Query Structure (JPQL / Criteria)

Explains the structure of a JPQL query, which consists of 6 clauses: SELECT, FROM, WHERE, GROUP BY, HAVING, ORDER BY.... operation. See JavaDoc Reference Page... , min min(x) CriteriaBuilder's method Create an aggregate expression ...

 
manual

JPA Criteria API Queries

Explains how to use the JPA Criteria API (CriteriaBuilder, CriteriaQuery, etc.) to build JPQL like queries.... operation. See JavaDoc Reference Page... , min min(x) CriteriaBuilder's method Create an aggregate expression ...

 
manual

Comparison in JPQL and Criteria API

Explains how comparison operators can be used in JPQL queries, including in comparing null values.... The two following expressions are equivalent ( :min and :max are query parameters ): x BETWEEN :min AND :max   x >= :min AND x <= :max ...

 
api-jpa

javax.persistence.criteria.CriteriaBuilder

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

 
manual

Index Definition

Describes how to define indexes in JPA entity classes and explains how indexes are used in JPQL queries.... for sorting results and for projection: SELECT MIN ( p . x ) FROM Point p WHERE p . x < p . ... for a separate sort. Finally, indexes are also used in MIN and MAX queries: SELECT MIN ( p . x ) , MAX ...

 
forum_thread

Server connection management

The server does not appear to release broken connections. My typical development pattern is to keep reloading my war file in tomcat until the permgen space runs out, and then I kill and restart tomcat. After a few days of this, the server stops responding, and I see the following in the server logs: ... configuration settings to control the connection pool (min/max connections, etc...). Thanks, Carl ...

 
issue

Pessimistic lock timeout - blocks indefinitely

I've attached a simple test which creates an object then kicks off several threads which each try to update the object. I'm using a pessimistic lock with timeout as follows: ... longer than 5000ms at least - I killed the test after a min or so). If I set the timeout to less than 1000ms the blocked ...

 
issue

javax.servlet.ServletException: Annotated methods must follow the JavaBeans naming convention. __odbHidden_getPropertyName

NB: the following issue only happens with ObjectDB, it does not happen with EclipseLink.  Glassfish3.0.1 objectdb-2.2.5_10 JavaEE6 web app The error reports as: javax.servlet.ServletException: Annotated methods must follow the JavaBeans naming convention. __odbHidden_getWidthPxSideBarLeft Where getWidthPxSideBarLeft() is an annotated getter of an entity ViewConfiguration: ... int widthPxSideBarLeft = 250;     @Min(150)     @Max(400)     public int ... template with dynamic CSS style parameters: style="min-width:#{viewConfigurationManager.viewConfiguration.widthPxSideBarLeft}px" ...