About NamedQueries

manual

JPA Named Queries

Explains how to define and how to run JPA named queries.... following topics: @NamedQuery and @NamedQueries Annotations Using Named Queries at Runtime @NamedQuery and @NamedQueries Annotations The following  @NamedQuery ...

 
api-jpa

JPA Annotations for JPQL Queries

Reference (JavaDoc) of JPA 2 query annotations, including @NamedQueries, @NamedQuery and @QueryHint.... static named JPA queries: javax.persistence.NamedQueries javax.persistence.NamedQuery ...

 
forum_thread

JBOSS AS7 7.1.1 - Entity not persisted and createNamedQuery fire exception

I'm trying to have the guestbook example running in the following environment: jboss as 7.1.1 final oracle jdk 1.7.0_04 maven 3.0.4 objectdb 2.4.0_04 installed as a module of jboss No IDE is used for building the Guestbook.war only maven.   My GuestDAO code is as follows: ... NamedQuery ; import javax. persistence . NamedQueries ; import javax. ejb . TransactionAttribute ; ... ;       @ NamedQueries ( { @ NamedQuery ( ... exception when I want to use a named query @ NamedQueries ( { @ NamedQuery ( ...

 
forum_thread

openejb jpa jaas module

    hello , i've finished jpa jaas module. Here it is :   package com.bayner.auth; import com.bayner.jpa.Principals; import com.bayner.jpa.UserInfo; import com.bayner.jpa.UserPrincipal; ... "seq" , initialValue = 10000 ) @ NamedQueries ( { @ NamedQuery ( ... @ Cacheable @ Entity @ NamedQueries ( @ NamedQuery ( name = ...

 
forum_thread

New to Product & Having An Issue

Greetings ObjectDB Users! I'm new to the product, and I've setup a simple test after reading the tutorial, and I'm running into some issues with queries, specifically querying by primary key.   I have a domain object class Called Department, which has a member of type DomainId.  DomainId has two member fields:  String accountId and String objectId.  The following code shows these two classes.... ( AccessType . PROPERTY ) @ NamedQueries ( { @ NamedQuery ( name = ...

 
api-jpa

javax.persistence.NamedQuery

Specifies a static, named query in the Java Persistence query language.(Annotation of JPA)

 
forum_thread

ObectDb 2.3.6 in OSGi environment

Hello, I'm trying to use ObjectDb within OSGi bundles. I have one bundle for db accens which uses ObjectDb and another bundle which includes the POJO models. Everytime I start in plugin evironement i get an PersistenceException, because my POJO not found. If try the same test in normal Java environment everthing works fine. Can you please advice? Thx Peter ... corresponding POJO: @ Entity @ NamedQueries ( { @ NamedQuery ( name = ...

 
forum_thread

Conflicting modifiers .... (javax.persistence.Id, javax.persistence.ManyToOne)

I have two classes a Container type class and another class that is 'contained' by that class. The contained class, CompoundKeyMapItem, represents an alternate implementation of an object held in a Map, and uses a Compound Primary Key. The contained class therefore uses an @IdClass. This all works fine on Eclipselink. However when I try and run this in ObjectDb I get the following error; ... . Id ; import javax. persistence . NamedQueries ; import javax. persistence . NamedQuery ; ... TestException ;   @ Entity @ NamedQueries ( { @ NamedQuery ( name = ...

 
forum_thread

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 #1 2011-04-29 19:39 in spring-data-jpa named queries are used to implement repository interface methods, see http://stati ...

 
forum_thread

Using Enum type in NamedQuery: Field is not found in type

I'm trying to switch an application that worked fine in Hibernate to ObjectDB and am having issues with queries that reference enum types. On my entity object is a static enum public static enum Type {     A,B,C } that is stored in an @Enumerated member variable private Type type; @Enumerated public Type getType() {     return type; } I then try to query this field in the following JPA Named Query #1 2013-01-17 22:17 I'm trying to switch an application that worked fine in Hibernate to ObjectDB and am having issues with queri ...