ObjectDB Database Search

1-50 of 200 results

Chapter 3 - Using JPA

Explains how to store, retrieve, update and delete entities using JPA.

Explorer in 2.3

expressions in the execution tab. Try the following query: SELECT 2 + 3 . This is currently ... servers, it may be faster for local files. 3 . On the Query page, please add a checkbox to request ... evaluation. For me, #1, #2 and # 3 would be the most important. Also, I've found some small bugs: 1

ObectDb 2.3.6 in OSGi environment

use a persistence.xml! The stacktrace looks like this: [ObjectDB 2. 3 .6] javax.persistence ... (BlockJUnit4ClassRunner.java:47) at org.junit.runners.ParentRunner$ 3 .run(ParentRunner.java:231) at org.junit ... ) at org.junit.runners.ParentRunner$ 3 .run(ParentRunner.java:231) at org.junit.runners.ParentRunner$1

Step 3: Add a Context Listener Class

Explains how to add a servlet context listener (to manage an application scope EntityManagerFactory) in an Eclipse Web Application.

Step 3: Define an EJB Session Bean

Explains how to define an EJB session bean in a NetBeans Java EE web application.

Step 3: Define a Spring DAO Component

Explains how to define a JPA DAO component (bean) in a NetBeans Spring MVC JPA web application project.

Step 3: Create an ObjectDB Data Source

Explains how to create an ObjectDB data source for BIRT reports.

Step 3: Add a Main Class

Explains how to add the JPA tutorial Main class in Eclipse.

Step 3: Add a Main Class

Explains how to add the JPA tutorial Main class in NetBeans.

Step 3: Define a Spring DAO Component

Explains how to define a JPA DAO component (bean) in an Eclipse Spring MVC JPA web application project.

Step 3: Add a Context Listener Class

Explains how to add a servlet context listener (to manage an application scope EntityManagerFactory) in a NetBeans Web Application.

Step 3: Define an EJB Session Bean

Explains how to define an EJB session bean in an Eclipse Java EE 6 web application.

Glassfish 3.1.2.1 and ObjectDB 2.4.3

- The requested resource () is not available. I tried it on Glassfish server 3 .1.2 and 3 .1.2.2. Sometimes I ... INFO: Running GlassFish Version: GlassFish Server Open Source Edition 3 .1.2 (build 23) INFO: Grizzly ... ) at org.glassfish.hk2.classmodel.reflect.Parser$ 3 .call(Parser.java:307) at org.glassfish.hk2

Closed EntityManagerFactory after upgrading glassfish 3.1.1 to 3.1.2

Hi. I have faced a very serious issue. After upgrading the GlassFish server from 3 .1.1 to 3 .1.2 ... more It seems that there is something wrong with persistent context. it seems that glassfish 3 .1.2 behaves differently. I tested another project which uses eclipseLink and java DB. it works well. glassfish 3 .1.1 logins

[ODB1] Chapter 3 - Persistent Classes

. The JDO specification refers to persistent classes as persistence capable classes . 3 .1   ... implementation automatically, as explained in section 3 . 3 . ObjectDB's JDO Enhancer also adds a no-arg ... ). 3 .2  Persistent Fields and Types Storing a persistent object in the database does not

JPA Class Enhancer

explained in Chapter 3 ). Special code is added to enhanced classes that automatically notifies ObjectDB ... .Enhancer If objectdb.jar is not in the current directory, a path to the file must be specified ... lists the classes that have been enhanced: [ObjectDB 2.9.4] 3 persistable types have been enhanced

ObjectDB Website - Terms and Conditions of Use

are under other licenses. See the Credits and Attributions page. 3 . Disclaimer The materials on ObjectDB ... that any of the materials on its web site are accurate, complete, or current . ObjectDB Software may make ... this web site you are agreeing to be bound by the then current version of these Terms and Conditions

jakarta.persistence.EntityManager

to the current transaction. Since: Jakarta Persistence (JPA) 3 .2 T merge ( T entity ) Merge the state ... that is currently associated with a persistence context. A detached entity is an instance with a persistent ... Exception thrown by ConnectionFunction.apply , if any. Since: Jakarta Persistence (JPA) 3 .2 void

jakarta.persistence.criteria.CriteriaBuilder

more restriction predicates Returns: and predicate. Since: Jakarta Persistence (JPA) 3 .2 Expression ... . Since: Jakarta Persistence (JPA) 3 .2 Order asc ( Expression expression ) Create an ordering by ... . Since: Jakarta Persistence (JPA) 3 .2 Expression avg ( Expression x ) Create an aggregate expression applying

JPA Criteria Queries

queries: Criteria Queries Hierarchy in Jakarta Persistence (JPA) 3 .2  Instances of  ... (Note: Subqueries are currently not supported by ObjectDB). Top-level queries and subqueries share

Strings in JPQL and Criteria Queries

('India', 'a') is evaluated to 5 . LOCATE('Japan', 'a', 3 ) is evaluated to 4 . LOCATE('Mexico ... [, length]) function returns a portion of a string. For example: SUBSTRING('Italy', 3 ) is evaluated to 'aly' . SUBSTRING('Italy', 3 , 2) is evaluated to 'al' . Positions are one-based (as in SQL), not

jakarta.persistence.EntityManagerFactory

with the caller, then the EntityManager is associated with this current transaction. If the given ... of the transaction Returns: the value returned by the given function. Since: Jakarta Persistence (JPA) 3 ... with the current JTA transaction Returns: entity manager instance. Throws: IllegalStateException

jakarta.persistence.TypedQuery

effect during query execution. Inherited from Query Since: Jakarta Persistence (JPA) 3 .2 CacheStoreMode ... . Inherited from Query Since: Jakarta Persistence (JPA) 3 .2 int getFirstResult () The position of the first ... properties and hints. Since: Jakarta Persistence (JPA) 2.0 LockModeType getLockMode () Get the current

jakarta.persistence.Query

that will be in effect during query execution. Since: Jakarta Persistence (JPA) 3 .2 CacheStoreMode ... . Since: Jakarta Persistence (JPA) 3 .2 int getFirstResult () The position of the first result the query object ... () Get the current lock mode for the query. Returns null if a lock mode has not been set on the query

JPA Entity Fields

are explained in Chapter 3 . You can mark a persistent field of an embeddable type with the @Embedded ... with optimistic locking , as explained in the Locking in JPA section in Chapter 3 . You can expose entity ... for detached entities (explained in Chapter 3 ) unless the entity class is enhanced (explained in Chapter 5

Literals in JPQL and Criteria Queries

, -127L, 0L, 07777L float : 3 .14F, 0f, 1e2f, -2.f, 5.04e+17f double : 3 .14, 0d, 1e2D, -2., 5.04e+17 ... . literal (1); Expression i2 = cb. literal (Integer.ValueOf(2)); Expression d = cb. literal ( 3 .4

jakarta.persistence.StoredProcedureQuery

that will be in effect during query execution. Inherited from Query Since: Jakarta Persistence (JPA) 3 ... execution. Inherited from Query Since: Jakarta Persistence (JPA) 3 .2 int getFirstResult () The position ... () Get the current lock mode for the query. Returns null if a lock mode has not been set on the query

Enhancer API (JDO 3.0)

One of the new features of JDO 3 is a standard API for enhancement. Currently ObjectDB implements its own enhancement API . support Support

Numbers in JPQL and Criteria Queries

. For example: MOD(11, 3 ) evaluates to 2 . MOD(8, 4) evaluates to 0 . The MOD function takes two integer ... function returns the square root of a specified argument. For example: SQRT(9) is evaluated to 3 SQRT(2

Date and Time in JPQL and Criteria Queries

the results of predefined JPQL functions that return the current date and time. Current date and time ... when the query is executed: CURRENT _DATE : Returns the current date as a java.sql.Date instance. CURRENT _TIME : Returns the current time as a java.sql.Time instance. CURRENT _TIMESTAMP : Returns the current

jakarta.persistence.EntityTransaction

(JPA) 1.0 void commit () Commit the current resource transaction, writing any unflushed changes ... whether the current resource transaction has been marked for rollback. Returns: boolean indicating ... (JPA) 3 .2 boolean isActive () Indicate whether a resource transaction is in progress. Returns

ObjectDB 2.3.3

ObjectDB 2.3.3

jakarta.persistence.Graph

to EntityGraph and Subgraph . See Also: EntityGraph Subgraph Since: Jakarta Persistence (JPA) 3 .2 Public ... is not an attribute of this entity.. Since: Jakarta Persistence (JPA) 3 .2 AttributeNode ... Persistence (JPA) 3 .2 void addAttributeNodes ( String... attributeName ) Add one or more attribute

jakarta.persistence.EntityGraph

.. Since: Jakarta Persistence (JPA) 3 .2 AttributeNode addAttributeNode ( Attribute attribute ) Get an existing ... : IllegalStateException - if the EntityGraph has been statically defined. Since: Jakarta Persistence (JPA) 3 .2 void ... . Since: Jakarta Persistence (JPA) 3 .2 Subgraph addElementSubgraph ( String attributeName ) Add

jakarta.persistence.Subgraph

. IllegalArgumentException - if the attribute is not an attribute of this entity.. Since: Jakarta Persistence (JPA) 3 .2 ... has been statically defined. Since: Jakarta Persistence (JPA) 3 .2 void addAttributeNodes ( String ... Persistence (JPA) 3 .2 Subgraph addElementSubgraph ( String attributeName ) Add a node to the graph

[ODB1] Chapter 6 - Persistent Objects

to makePersistent( ... ) is not an instance of a persistent class (as defined in chapter 3 ... of persistent types is available at section 3 .2 ). ObjectDB provides an additional storing method ... can be changed as explained in section 4. 3 Embedded objects can reduce storage space and improve efficiency

Java EE JPA Tutorial - Maven Project

The  Java EE Web Application tutorial provides step by step instructions on how to build a simple Java/JPA database driven web application (for GlassFish 3 / JBoss 6) in  Eclipse or  ... the command line: mvn package The current directory should be  guestbook-jee6

[ODB1] Chapter 9 - ObjectDB Explorer

. It is shipped as an executable jar that will run on any system with a Java 1. 3 JRE or later installed ... to view the content of that object. Select an object in a currently open table or browser viewer ... | Open Focus Selection" command switches the current viewer to focus on the selected object. A double

[ODB1] Chapter 5 - JDO Connections

Transaction (as shown in section 5. 3 ) or at the PersistenceManagerFactory level as a default ... .getRestoreValues(); Transaction modes are discussed in section 5. 3 , which deals with transactions. 5 ... that at some level a proper try-catch block exists. 5. 3   javax.jdo.Transaction The javax.jdo

Eclipse/JPA Java EE Tutorial

for Java EE Developers. GlassFish Server 3 .0.1 (or above). The last version of ObjectDB (just download and extract). The tutorial was written for Eclipse 3 .6.1 but it should work with other Eclipse versions ... : ObjectDB 2. 3 .7_04 or later is required if Glassfish 3 .1.2 (or later) is used. The Tutorial Steps This tutorial consists of the following steps:

[ODB1] Chapter 2 - A Quick Tour

a list of strings in a database. 2 3 import java.util.*; 4 import javax.jdo.*; 5 import com ... .currentTransaction().commit(); 38 pm.close(); 39 } 40 } How it works   Lines 3 -5 Three import statements are required: for Java collections (line 3 ), for JDO (line 4) and for ObjectDB extensions

Step 1: Create a Maven Web Project

.springframework spring-webmvc 3 .0.5.RELEASE org.springframework spring-tx 3 .0.5.RELEASE org.springframework spring-orm 3 .0.5.RELEASE aopalliance aopalliance 1.0 cglib cglib 2.2 org.aspectj aspectjweaver

Step 1: Create a Maven Web Project

       org.springframework    spring-webmvc    3 .0.5.RELEASE        org.springframework    spring-tx    3 .0.5.RELEASE        org.springframework    spring-orm    3 .0.5.RELEASE

Step 1: Create a Java EE 6 Web Project

a Project Name (e.g. Guestbook ). Select GlassFish Server Open Source Edition 3 (Java EE 6) as the Target runtime. Note: You may have to add GlassFish 3 as a new server by clicking the New Runtime... button ... to GlassFish 3 (which has to be downloaded separately) . Click the Finish button to create the Java EE 6

JPA Tutorials

, such as GlassFish 3 .0.1 or JBoss AS 6. Another tutorial shows how to use JPA in a Spring MVC Framework 3 web application: Spring MVC and JPA Maven Projects for Download The tutorials provide step

NetBeans/JPA Java EE Tutorial

and menus might look slightly different but the code would be the same). Note: ObjectDB 2. 3 .7_04 or later is required if Glassfish 3 .1.2 (or later) is used. The Tutorial Steps This tutorial consists of the following steps:

[ODB1] Chapter 7 - JDOQL Queries

There are various ways to retrieve objects from an ObjectDB database, as shown in section 6. 3 ... , 0, 0xFFFF, 07777 , ... long 2003L, -127L, 0L, 0xFFFFL, 07777L , ... float 3 .14F, 0f, 1e2f, -2.f, 5.04e+17f , ... double 3 .14, 0d, 1e2D, -2., 5.04e+17 , ... char 'x', '@', '\n', '\\', '\'', '\uFFFF

Eclipse/JPA Spring MVC Web Tutorial

) including  Maven Integration for WTP (in m2eclipse extras). The tutorial was written for Eclipse 3

[ODB1] Chapter 8 - ObjectDB Server

his or her private database files (as demonstrated in section 8. 3 ). The element The element ... to do the same operation in subdirectories of that directory. 8. 3   Multi User Server

[ODB1] Chapter 4 - JDO Metadata

database, ObjectDB always uses datastore identity with its own object-id class). 4. 3    ... for determining if a field is persistent are explained in section 3 .2 . The persistence-modifier