ObjectDB Database Search
51-100 of 200 resultsString 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 containerembed the .odb file in tomcat webapp container | |
The project does not contain a persistence unitThe 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 | |
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 | |
Chapter 2 - JPA Entity Classes JPA Entity classes are user defined classes whose instances can be stored in a database. To store data in an ObjectDB database using JPA you have to define entity classes that represent your application data object model. This chapter explains how to define and use entity classes. This chapter contains the following sections: | |
Eclipse Public License - v 1.0 copyright notices contained within the Program. Each Contributor must identify itself as the originator | |
Running JPA Queries. If the database 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 | |
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 | |
InterfaceRef jakarta.persistence.EntityManager, a container -managed EntityManager may be obtained by dependency injection, using PersistenceContext . {@snippet : // inject the container -managed entity manager @PersistenceContext(unitName="orderMgt" ... until the transaction completes. Throws: IllegalStateException - if the entity manager is container | |
InterfaceRef jakarta.persistence.spi.PersistenceProvider by the container in Jakarta EE environments and by the Persistence class in Java SE environments ... , Map map) Called by the container when an EntityManagerFactory is to be created. Parameters ... the classpath, the container must pass the {@code ValidatorFactory} instance in the map with the key {@code | |
InterfaceRef jakarta.persistence.spi.PersistenceUnitInfo JPA Interface PersistenceUnitInfo Interface implemented by the container and used by ... : transformer - provider-supplied transformer that the container invokes at class-(re)definition time ... to a directory that contains an exploded jar file, or some other URL from which an InputStream in | |
InterfaceRef jakarta.persistence.criteria.Subquery. Parameters: parentCollection - join object of the containing query Return: subquery join Since: JPA 2.0 ... of the enclosing query. Parameters: parentJoin - join object of the containing query Return: subquery ... of the containing query Return: subquery join Since: JPA 2.0 MapJoin correlate ( MapJoin parentMap | |
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 | |
InterfaceRef jakarta.persistence.EntityManagerFactory the Jakarta EE environment, a container -managed EntityManagerFactory may be obtained by dependency injection, using PersistenceUnit . {@snippet : // inject the container -managed factory @PersistenceUnit ... . Alternatively, in the Jakarta EE environment, a container -managed EntityManager may be obtained by dependency | |
EnumRef jakarta.persistence.PessimisticLockScope and relationships owned by the entity that are contained in join tables are locked if the property jakarta ... ). Entity relationships for which the locked entity contains the foreign key will also be locked, but not ... collections and relationships for which the entity does not contain the foreign key (such as relationships | |
PersistenceProvider.createContainerEntityManagerFactory(info,map) - JPA Method ) Called by the container when an EntityManagerFactory is to be created. Parameters: info - metadata ... , the container must pass the {@code ValidatorFactory} instance in the map with the key {@code "jakarta.persistence.validation.factory"} . If the containing archive is a bean archive, the container must pass | |
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 | |
EnumConstRef jakarta.persistence.PessimisticLockScope.NORMAL entity contains the foreign key will also be locked, but not the state of the referenced entities ... for which the entity 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 | |
ClassRef jakarta.persistence.Persistence generation to occur. The Persistence class is available in a Jakarta EE container environment as well; however, support for the Java SE bootstrapping APIs is not required in container environments ... ; these may also contain provider-specific properties. The values of these properties override any values | |
InterfaceRef jakarta.persistence.Cache JPA Interface Cache Interface used to interact with the second-level cache. If no second-level cache is in use, the methods of this interface have no effect, except for contains , which returns ... boolean contains (Class cls, Object primaryKey) Whether the cache contains data | |
AnnotationRef jakarta.persistence.ManyToMany within an embeddable class contained within an entity class to specify a relationship to a collection of entities. If the relationship is bidirectional and the entity containing the embeddable class is the owner | |
EnumRef jakarta.persistence.criteria.Predicate$BooleanOperator Public Static Enum Methods: Predicate.BooleanOperator[] values () Returns an array containing ... ()) System.out.println(c); Return: an array containing the constants of this enum type, in the order | |
EnumRef jakarta.persistence.criteria.CriteriaBuilder$Trimspec an array containing the constants of this enum type, in the order they are declared. This method ... .Trimspec.values()) System.out.println(c); Return: an array containing the constants of this enum | |
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: | |
JDO Miscellaneous Types This section contains miscellaneous JDO types: |