Home » Search

About long

11-20 of 200Refresh
Manual
22

Running JPA Queries

object is expected. The following aggregate query always returns a single result object, which is a Long object reflecting the number of Country objects in the database: TypedQuery<Long> query = em.createQuery( "SELECT COUNT(c) FROM Country c", Long.class); long countryCount = query
Manual
20

Auto Generated Values

(strategy=GenerationType.AUTO) long id; : } AUTO is the default strategy, so the following definition is equivalent: @Entity public class EntityWithAutoId2 { @Id @GeneratedValue long ... @GeneratedValue(strategy=GenerationType.IDENTITY) long id; : } The IDENTITY strategy
Result
18

ObjectDB Object Database Features

fields) Primitive types (boolean, byte, short, char, int, long, float, double). Wrapper types (Boolean, Byte, Short, Character, Integer, Long, Float, Double). java.lang.String Date types: java.util.Date ... , int, long, float and double). Wrappers (Boolean, Byte, Short, Character, Integer, Long, Float
Manual
18

Shared (L2) Entity Cache

and primary key: em.find(MyEntity2.class, Long.valueOf(1),      Collections.Long.valueOf(1),    Collections.singletonMap(         "javax.persistence.cache ... : boolean isCached = cache.contains(MyEntity.class, Long.valueOf(id)); Cached entity objects
Manual
15

GROUP BY and HAVING clauses

of SQL: COUNT - returns a long value representing the number of elements. SUM - returns the sum ... that letter's group as a Long object and the third cell contains the distinct number of currencies ...  interface provides methods for building aggregate expressions: count, countDistinct - return a long type
Manual
15

Numbers in JPQL and Criteria Queries

in Java (e.g. for int and long operands the MOD function returns a long value). The SQRT Function ... The above examples demonstrate only integer expressions, but all the numeric types (byte, short, int, long, float
Tutorial
15

Step 2: Define a JPA Entity Class

class Point implements Serializable { private static final long serialVersionUID = 1L; @Id @GeneratedValue private long id; private int x; private int y; public ... ; } public Long getId() { return id; } public int getX() { return x
Tutorial
15

Step 2: Define a JPA Entity Class

{ private static final long serialVersionUID = 1L; @Id @GeneratedValue private long ... y) { this.x = x; this.y = y; } public Long getId() { return
Result
12

Posting to ObjectDB Website - Important Instructions

. Avoid overflow of published source code examples by breaking long lines. Long stack traces (> 50
Manual
12

Index Definition

a value of one of the following persistable types: Primitive types: boolean, byte, short, char, int, long ... , Long, Float, Double. java.math.BigInteger, java.math.BigDecimal. java.lang.String. java.util.Date