ObjectDB ObjectDB

Internal Website Search

41-50 of 154 resultsRefresh
22

JBOSS AS7 7.1.1 - Entity not persisted and createNamedQuery fire exception

.persistence.PersistenceContext; import javax.persistence.TypedQuery; import javax.persistence ... work   // TypedQuery<Guest> query = this.em.createNamedQuery( "Guest.getAll", Guest.class );   TypedQuery<Guest> query = this.em.createQuery( "select g from guest.Guest g order by g.name", Guest
17

Object as parameter results in exception

.get("id"), primaryKey),     qb.and(qb.equal(p.get("owningCompany"), company)));   TypedQuery<T> q ... .get("owningCompany").get("id"), company.getId())));   TypedQuery<T> q = getEntityManager ... please consider: Building the query (the CriteriaQuery and the TypedQuery) once with two parameters
5

javax.persistence.NonUniqueResultException

Interfaces: Serializable Thrown by the persistence provider when Query.getSingleResult() or TypedQuery ... .0 See Also: Query.getSingleResult() TypedQuery.getSingleResult() NonUniqueResultException
5

javax.persistence.NoResultException

: Serializable Thrown by the persistence provider when Query.getSingleResult() or TypedQuery.getSingleResult ... .getSingleResult() TypedQuery.getSingleResult() NoResultException() Constructs a new NoResultException exception
5

createNamedQuery(name, resultClass)

Method javax.persistence.EntityManager TypedQuery<T> createNamedQuery( String name, Class<T> resultClass ) Create an instance of TypedQuery for executing a Java Persistence query language named query. The select list of the query must contain only a single item, which must be assignable to the type
5

javax.persistence.FlushModeType

.AUTO is set on the Query or TypedQuery object, or if the flush mode setting for the persistence context is AUTO (the default) and a flush mode setting has not been specified for the Query or TypedQuery
3

javax.persistence.PessimisticLockScope

of the EntityManager, Query, and TypedQuery interfaces that allow lock modes to be specified or used
3

javax.persistence.Parameter

javax.persistence Interface Parameter<T> Subinterfaces: ParameterExpression Type for query parameter objects. Since: JPA 2.0 See Also: Query TypedQuery Learn how to define and use JPA/JPQL queries in Chapter 4 of the ObjectDB/JPA manual. String getName() Return the parameter name, or null
3

javax.persistence.LockModeType

.setLockMode() or TypedQuery.setLockMode() method. Lock modes can be used to specify either optimistic or
3

close()

Method javax.persistence.EntityManager void close() Close an application-managed entity manager. After the close method has been invoked, all methods on the EntityManager instance and any Query and TypedQuery objects obtained from it will throw the IllegalStateException except for getProperties

Getting Started

ObjectDB is very easy to use. Follow the Getting Started Tutorial and the Quick Tour manual chapter and in minutes you may be able to write and run first Java programs against ObjectDB.

Prior knowledge or experience in database programming (SQL, JDBC, ORM, JPA, etc.) is not required, but some background in using the Java language is essential.

Need Help?

  1. Search ObjectDB website
  2. Read the FAQ
  3. Follow the Tutorials
  4. View or post in the forum
  5. Search or file an issue
  6. Contact support