ObjectDB ObjectDB

Internal Website Search

11-20 of 36 resultsRefresh
140

can not use spring-data-jpa repository with NamedQuery

in spring-data-jpa named queries are used to implement repository interface methods, see http://static.springsource.org/spring-data/data-jpa/docs/current/reference/html/#jpa.query-methods.named-queries for example @NamedQuery(name = "Foo.findByBar", query = "select f from Foo f where :bar member
44

JBOSS AS7 7.1.1 - Entity not persisted and createNamedQuery fire exception

.NamedQuery; import javax.persistence.NamedQueries; import javax.ejb.TransactionAttribute; import javax ... .TransactionManagementType; @NamedQueries( { @NamedQuery(          name="Guest.getAll ... );   if ( type == null )     System.out.println( "ManagedType Guest not found"  );   // NamedQuery does not
35

Problem with entities detection

javax.persistence.NamedQueries; import javax.persistence.NamedQuery; import javax.persistence ... ") @XmlRootElement @NamedQueries({ @NamedQuery(name = "Alumno_odb.findAll", query = "SELECT a FROM Alumno a") , @NamedQuery(name = "Alumno_odb.findByDni", query = "SELECT a FROM Alumno
34

openejb jpa jaas module

(); final int id = info.getId(); final TypedQuery<UserPrincipal> namedQuery = entityManager ... > resultList = namedQuery.getResultList(); for (UserPrincipal userPrincipal : resultList ... . */ @Cacheable @Entity @SequenceGenerator(name="seq", initialValue=10000) @NamedQueries
26

Duplicate Entity class names causes Exception in Query

, only one of them is mentioned in the persistence.xml. I a NamedQuery I use the unqualified class name ... .... @Entity @NamedQueries({ @NamedQuery(name = "objdbTest.Singleton.getItem", query = "SELECT o FROM Item o WHERE o.cachedKey = :cachedKey"), @NamedQuery(name = "objdbTest.Singleton.count", query
24

JPQL query to get entities that does not have a child entity in their child entities

' and not 'Finished'. I have entities for Job and Status with NamedQueries on Job entity and using ... : @NamedQuery( name = "findFinishedJobsBetweenTimeIntervals", query = "SELECT J FROM JobEntity J, IN(J ... AND " +     "JS.status = 'Finished'" ), CANCELED Jobs between a time interval: @NamedQuery( name
21

Setting and Tuning of JPA Queries

); For a named query definition - using the hints element: @NamedQuery(name="Country.findAll", query="SELECT
21

ObjectDB Object Database Features

) in annotations (@NamedQuery) and XML. Query parameters for efficient reuse of one query in multiple
6

javax.persistence.PessimisticLockScope

with the NamedQuery annotation. Since: JPA 2.0 PessimisticLockScope EXTENDED In addition to the behavior
6

javax.persistence.QueryHint

javax.persistence Annotation QueryHint Target: Used to supply a query property or hint to the NamedQuery or NamedNativeQuery annotation. Vendor-specific hints that are not recognized by a provider are ignored. Since: JPA 1.0 String name Name of the hint. Name of the hint. Since: JPA 1.0 String

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