About example

forum_thread

JPA query of a Set of terms

Hi, Is it possible to write a JPA query to select objects that contain a collection of elements? For example, suppose I have a table that maps a search terms to pages: @Entity public class SearchIndex { @Index SearchTerm term; @Index Page page; } Now suppose I have an array of SearchTerm objects. ie. ... objects that contain a collection of elements? For example, suppose I have a table that maps a search terms to pages: @ ... a dynamic query based on the number of search terms. For example, for two search terms: TypedQuery<Page> query = em. ...

 
manual

JPA Metamodel API

Explains how to use the JPA Metamodel API to retrieve details on the types and attributes of the persistent object model.... method (both methods are equivalent). For example, given an EntityManager javax.persistence.EntityManager ... properties (which are referred to as attributes). For example: // Get all the attributes - including inherited: ...

 
forum_thread

Spring 4 setup

Can someone provide an example of setup ObjectDB embeded to be used with Spring4? Existing examples is like for Spring3 and I can't figure how to use ObjecDB in Spring tutorial: http://spring.io/guides/gs/accessing-data-jpa/   Thanx. ... Can someone provide an example of setup ObjectDB embeded to be used with Spring4? Existing ...

 
forum_thread

Tomcat + JPA Problem

Hi i tried to setup the example from your webpage (jpa - Tomcat with Ecplipse) and i always get this Error: [ObjectDB 2.1.0] class "javax.persistence.Entity"'s signer information does not match signer information of other classes in the same package   ... Hi i tried to setup the example from your webpage (jpa - Tomcat with Ecplipse) and i always get this ... of Java, Eclipse and Tomcat that you are using. This example was tested with Tomcat 6. Are you using Tomcat 7? ...

 
forum_thread

Schema-Update: Rename superclass and remove one subclass

Hello, we renamed a superclass and removed one of the subclass. If we then try to open the Database (with ObjectDB-Explorer) we get a "Failed to generate dynamic type ..."   Small Example: Generate Database ... to generate dynamic type ..."   Small Example: Generate Database public static void main ... we access the prevous create Database with the following example: public static void main ( String [ ...

 
forum_thread

problems using the explorer

we are currently evaluating objectDB. Environment OSX 10.9.2, JavaSE-1.7 Version: Kepler Service Release 2 Build id: 20140224-0627 ObjectDB 2.5.5 Maven project, objectDB relevant sections: ... ...   Problem: we created a small example that just writes and retrieves an entity, everything works fine (start ... 2.2.5 , which was downloaded automatically by the Maven example. If you open the database using the Explorer of version ...

 
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: ... I'm trying to have the guestbook example running in the following environment: jboss as 7.1.1 ... </plugin >   The example now runs but Guest still dont get persisted. No exception either. Some ...

 
forum_thread

Schema Update: class hierarchy change

Hello, we try to change the class hierarchy of an Entity. You wrote www.objectdb.com/database/forum/899 that ObjectDB support automatic schema evolution for adding and removing fields and for class hierarchy change.   But our small test failed: At first create a DataBase with one Object of MyEntity ... class which was removed from the hierarchy. As Example: Given are the three classes BaseEntity, NamedEntity and ...

 
manual

Paths and Types in JPQL and Criteria API

Explains how to use object expressions (path navigation, type) in JPA/JPQL.... persistent fields to other objects and values. For example - c.capital , where c represents a Country entity object uses the ... be extended further by reusing the dot (.) operator. For example, c.capital.name is a nested path expression that continues from the ...

 
forum_thread

JDOHelper.isDetached failure ?

Running this example code: ... 21:37 Running this example code: public static void main ( String ... which are also more efficient. Running your example with enhancement: > java ...