About page

api-jpa

executeUpdate()

Execute an update or delete statement.(Method of javax.persistence.Query)

 
api-jpa

getSingleResult()

Execute a SELECT query that returns a single result.(Method of javax.persistence.TypedQuery)

 
tutorial

Step 2: Entity Class and Persistence Unit

Explains how to define a JPA entity class and a persistence unit (persistence.xml) in a NetBeans Java EE 6 web application. To store objects in an ObjectDB database using JPA we need to define an entity class: Open the [New Entity Class] dialog box, e.g. by right clicking the project node (in the [Projects] window) and selecting New > Entity Clas ...

 
forum_thread

how to query by properties of onetomany relations? (Error 990)

the following code fails em.createQuery("select f from Foo f where f.bars.name = ?1", Foo.class).setParameter(1, barName) stacktrace: ... ? 1 More details are provided on the FROM page of the ObjectDB manual. ObjectDB Support ... is provided on the Query Setting and Tuning page. ObjectDB Support ObjectDB - Fast Object ...

 
manual

DELETE Queries in JPA/JPQL

Explains how to apply server side bulk delete using a JPA/JPQL query.... instances) only after commit . This page covers the following topics: Delete All Queries ... an update or delete statement. See JavaDoc Reference Page... method: int deletedCount = em. createQuery ...

 
api-jpa

javax.persistence.TemporalType

Type used to indicate a specific mapping of java.util.Date or java.util.Calendar.(Enum of JPA)

 
api-jpa

javax.persistence.OneToMany

Defines a many-valued association with one-to-many multiplicity.(Annotation of JPA)

 
api-jpa

multiselect(selections)

Specify the selection items that are to be returned in the query result.(Method of javax.persistence.criteria.CriteriaQuery)

 
api-jpa

javax.persistence.criteria.CriteriaBuilder

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

 
forum_thread

@JoinColumn(nullable=false)

  During the evaluation of ObjectDB (We're currently developing with EclipseLink/mysql) I noticed was the following: ... of JPA 2 ORM annotations. See JavaDoc Reference Page... , including the @JoinColumn ... or element collection. See JavaDoc Reference Page... annotation (as noted in the API documentation ... or element collection. See JavaDoc Reference Page... ) because data in ObjectDB is not mapped to SQL, tables and ...