Internal Website Search

51-100 of 200 results

String Contains Query Result - Possible?

Hi, I have a managed database for an Entity, "Program", containing a String field, "description ... one that is contained within the System Description. public static Program programByDescription(String desc) { for(Program p : allPrograms()) if(desc. contains (p.getDescription())) return p; return null

Memory error during commit, if @ElementCollection field contains many elements

collection contains more than 10.000 elements. There are more than 100.000 TCSteps persisted in ... entity classes. Every  TCStep will reference a new entity object that will contain the collection

Logging archive contains non-objectdb log files

Hi, I'm dealing with problem, that objectdb's log archive folder contains several other log files which are not part of objectdb. We use single location for our application log files and also objectdb log files. When application crashes or retarts, we noticed that several of our log files reside

Query to find object from element of a contained collection

I have an OrderData class, containing an OrderItemData collection, i would like to find OrderData elements by OrderData.items.itemId. I cant get a proper query with MEMBER OF or IN. Does anyone have an idea on how i could formulate that as Typed or CriteriaBuilder query? Thanks.   @Entity

embed the .odb file in tomcat webapp container

embed the .odb file in tomcat webapp container

The project does not contain a persistence unit

The project does not contain a persistence unit

system exception occurred during an invocation on EJB GuestDao

() 2014-09-01T19:09:01.324+0200|Avertissement: javax.ejb.EJBException at com.sun.ejb. containers ... .ejb. containers .EJBContainerTransactionManager.completeNewTx(EJBContainerTransactionManager.java:698) at com.sun.ejb. containers .EJBContainerTransactionManager.postInvokeTx

Glassfish 4 AbstractMethodError: com.objectdb.jpa.EMF.createEntityManager

/persistence/EntityManager; at com.sun.ejb. containers .EJBContainerTransactionManager.checkExceptionClientTx(EJBContainerTransactionManager.java:665) at com.sun.ejb. containers .EJBContainerTransactionManager.postInvokeTx(EJBContainerTransactionManager.java:507) at com.sun.ejb. containers .BaseContainer

JPA Named Queries

contains four elements - two of which are required and two are optional. The two required elements

What are the main benefits of using ObjectDB?

fields can be stored by ObjectDB simply as part of the containing object. Relational databases lack

Where can I learn how to use ObjectDB?

The best source for learning ObjectDB is the ObjectDB Manual , which contains all the necessary information for using ObjectDB. The only required background is a good understanding of the Java language. Reading the manual and getting started with ObjectDB could be easier for developers with prior

Core JPA Types

This section contains the most essential JPA types.

JPA Annotations for Java EE

The following JPA annotations are in use to integrate JPA into a Java EE application and are managed by the Java EE container :

Control and Setting

This section contains miscellaneous JPA types. The PersistenceUtil and PersistenceUnitUtil interfaces provide general utility methods: The Cache interface and the CacheRetrieveMode and CacheStoreMode enum types serve in managing the EntityManagerFactory's shared (level 2) cache: Other enum types are provided for setting of various JPA operations:

Database Schema Evolution

). From any object to any collection or array that can contain that object as en element. From any map

Eclipse Public License - v 1.0

copyright notices contained within the Program. Each Contributor must identify itself as the originator

Running JPA Queries

contains multiple Country objects with the name 'Canada' (e.g. due to a bug

Shared (L2) Entity Cache

= cache. contains (MyEntity.class, Long.valueOf(id)); Cached entity objects can be removed from the cache

Chapter 6 - Configuration

The ObjectDB configuration file contains one root element with seven subelements: ... ... ... ... ... ... ... Each one of these seven configuration elements is explained in a separate section: This page explains how ObjectDB configuration works in general. The Configuration Path By default

Entity Management Settings

The configuration element specifies front end settings that are relevant on the client side and in embedded mode. The default configuration file contains the following element: The element The element specifies enhancement related settings: The agent attribute (whose value is "true" or "false

Posting Sample Code

protected constructor, An entity class must be a top level class, The project does not contain

JPA Annotations

JPA defines dozens of annotations that can be divided into the following groups: Annotations for JPA aware classes: Annotations for fields in JPA persistable classes: Annotations for additional JPA configuration: Annotations for JPA lifecycle event callbacks: Java EE container annotations: Many

Paths and Types in JPQL and Criteria API

class must contain a persistent field (or property) with a matching name. The path expression

JPA Criteria API Queries

fills at runtime in a form that contains many optional fields - is expected to be cleaner when using

ORDER BY clause (JPQL / Criteria API)

processing chain. If a query contains both an ORDER BY clause and a GROUP BY clause the SELECT clause

Chapter 1 - Quick Tour

that contains points in the plane. Each point is represented by an object with two int fields, x and y

InternalException when querying indexed field using a list that contains duplicates

filter like this is used: ":ids. contains (originalId)" originalId is an indexed String field on the candidate class :ids is a list which contains a duplicate entry If the field is unindexed, or :ids does not contain duplicates, the exception is not thrown and the query produces the expected results

WeakRef Purge ObjectDb threads not stopping with Tomcat (in application container)

Hi, We have threads that are not stopping with Tomcat requiring a hard stop of the container .  Can you please help us resolve this issue? Thanks, Clinton / Fazle What is the impact of the issue ... , so it should be more friendly for Tomcat and similar containers . support Support

javax.persistence.EntityManager

: IllegalStateException - if the entity manager is container -managed Since: JPA 1.0 boolean contains (Object  ... named query. The select list of the query must contain only a single item, which must be assignable ... Persistence query language statement. The select list of the query must contain only a single item

javax.persistence.PessimisticLockScope

, element collections and relationships owned by the entity that are contained in join tables ... ) for the entity instance in the additional table(s). Entity relationships for which the locked entity contains ... contain the foreign key (such as relationships that are mapped to join tables or unidirectional

javax.persistence.criteria.Subquery

object of the containing query Return: subquery join Since: JPA 2.0 Join correlate ( Join   ... : parentJoin - join object of the containing query Return: subquery join Since: JPA 2.0 ListJoin ... object of the enclosing query. Parameters: parentList - join object of the containing query Return

objectdb-2.6.9_06: Extended Persistence Context fails: 'Attempt to begin a new transaction when a transaction is active'

transaction when a transaction is active at com.sun.ejb. containers .BaseContainer.preInvoke(BaseContainer.java:2004) at com.sun.ejb. containers .EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:210) at com.sun.ejb. containers .EJBLocalObjectInvocationHandlerDelegate.invoke

Java EE Web Tutorial

. If you need a web application that can run on a simple servlet container (such as Tomcat or Jetty

Step 3: Define a Spring DAO Component

the application to the Spring Framework. For instance, in this example the Spring container : Manages

Step 5: Add a JSP Page

Guest Book Web Application Tutorial Name: The JSP generates the guestbook page output, which contains

Getting Started with JPA - Maven Project

The current directory should be points-console ( containing the pom.xml file). No need to download

Step 3: Define a Spring DAO Component

the application to the Spring Framework. For instance, in this example the Spring container : Manages

Spring MVC JPA Tutorial - Maven Project

jetty:run The current directory should be  guestbook-spring ( containing the  pom.xml file

Step 5: Add a JSP Page

Guest Book Web Application Tutorial Name: The JSP generates the guestbook page output, which contains

Step 5: Add a JSP Page

Tutorial Name: The JSP generates the guestbook page output, which contains a simple form for signing

Step 5: Add a JSP Page

Tutorial Name: The JSP generates the guestbook page output, which contains a simple form for signing

Step 5: Add a JSP Page

generates the guestbook page output, which contains a simple form for signing the guestbook, followed by

Getting Started with JPA and NetBeans

the ObjectDB distribution zip file. The distribution zip contains everything necessary (no external

Step 4: Create an ObjectDB Data Set

this tutorial contains Point entity objects. We will use a simple JPQL query that retrieves points with x

javax.persistence.PessimisticLockScope.NORMAL

entity contains the foreign key will also be locked, but not the state of the referenced entities ... does not contain the foreign key (such as relationships that are mapped to join tables or unidirectional one-to-many relationships for which the target entity contains the foreign key) will not be locked by default. Since: JPA 2.0

JDO Reference (JavaDoc)

This reference contains the API documentation (similar to JavaDoc) of JDO 2.2. The content is derived from the original JDO documentation with some additions and notes. The most basic JDO types are: All the other JDO types are organized into the following sections:

[ODB1] Chapter 5 - JDO Connections

block: try { // Code containing database operations should be loacated here. } catch (JDOException x

JDO Miscellaneous Types

This section contains miscellaneous JDO types:

javax.jdo.Query

of white space. The variableDeclaration parameter is the name of the variable containing the results ... containing one or more query parameter declarations separated with commas. Each parameter named in ... containing one or more unbound variable declarations separated with semicolons. It follows the syntax

javax.jdo.JDOHelper

: propsFile - the file containing the Properties Return: the PersistenceManagerFactory Since: JDO 2.0 ... - the file containing the Properties loader - the class loader to use to load ... . Parameters: stream - the stream containing the Properties Return: the PersistenceManagerFactory