Home » Search

About in

51-60 of 200Refresh
Forum
12

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 ... 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
Manual
12

JPA Query API

Queries are represented in JPA 2 by two interfaces - the old Query interface, which was the only interface available for representing queries in JPA 1, and the new TypedQuery interface that was introduced in JPA 2. The TypedQuery interface extends the Query interface. In JPA 2 the Query interface
Issue
11

A bug in the JDOQL processor in recent versions of ObjectDB

There seems to be a bug in the JDOQL processor in recent versions of ObjectDB. I've uploaded a "laptop" example to demonstrate the problem. The query in Test1.main should return "ThinkMachine MAX SX 20", but it returns incorrect "Media Central Media 555". Earlier versions (at least up to 2.5.4
Forum
11

how to create in memery database in objectdb

plz can u give or help me how to create in memory database in objectdb   with example See answer in this forum thread (also use that other thread for further discussion). yadavanil
Manual
11

Database Management Settings

which are relevant on the server side and in embedded mode. The default configuration file contains the following ... ). The page attribute specifies the size of a page in a database file. The default of 2KB is appropriate ... . sync=false is much faster in writing data to a database, but true might be safer in production. By
Manual
11

JPA Lifecycle Events

(added to the EntityManager). @PostPersist - after storing a new entity in the database (during commit or ... - when an entity is identified as modified by the EntityManager. @PostUpdate - after updating an entity in the database (during commit or flush). @PreRemove - when an entity is marked for removal in
Manual
11

Shared (L2) Entity Cache

of this cache makes it useful in applications that use many short term EntityManager instances.  In addition ... The shared (L2) cache is configured in three scopes: Globally in the ObjectDB configuration. Per persistence unit in the persistence.xml file. Per entity class - using annotations. ObjectDB
Manual
11

CRUD Database Operations with JPA

code fragment stores 1,000 Point objects in the database: em.getTransaction().begin(); for (int i ... ) require an active transaction. In the example above, every Point object is first constructed as ... a managed entity) by the persist method. The new Point objects are physically stored in the database
Manual
11

JPA Query Structure (JPQL / Criteria)

. Having a SQL like syntax in JPA queries is an important advantage because SQL is a very powerful query ... and easier to use in Java. JPQL Query Structure As with SQL, a JPQL SELECT query also consists of up to 6 clauses in the following format: SELECT ... FROM ... [WHERE ...] [GROUP BY ... [HAVING
Manual
11

Setting and Tuning of JPA Queries

) .getResultList(); These methods can be invoked in a single expression with getResultList since the setter methods in Query and TypedQuery support method chaining (by returning the query object ... of other EntityManager instances). JPA implementations can easily make uncommitted changes visible in