ObjectDB Database Search

101-150 of 200 results

Not Enhanced: ...: com.objectdb.o.TEX: Type ..._$$_javassist_1 is not found

Not Enhanced: ...: com.objectdb.o.TEX: Type ..._$$_javassist_1 is not found

TypedQuery implementation problems

)" + " from Account acct" + " left outer join AccountTransaction att on acct.id = att.accountId" + " left outer join Transaction trans on att.transactionId = trans.id" + " left outer join AccountGroup ag on acct.accountGroupId = ag.id" + " left outer join AccountType at on at.id = ag.accountType" + " group

Query with FETCH JOIN returns multiple results instead of one.

WHERE d=:demand You are probably wrong regarding Hibernate etc. as the JPA 2. 1 specification on page 178 is clear: SELECT d FROM Department d LEFT JOIN FETCH d.employees WHERE d.deptno = 1 "A fetch join has the same join semantics as the corresponding inner or outer join, except that the related objects

KEY() / VALUE() not recognized in JPQL??

Hi! Explorer says "unexpected token" on KEY(..: SELECT FROM individual.IndividualContact $ 1 LEFT OUTER JOIN $ 1 .profile.title.name m WHERE (KEY(m) = 'deu' AND VALUE(m) LIKE '%Dr%') profile = embedded entity title = referenced entity name = Map   thanks, Alex quasado Alexander Adam Yes

ObjectDB 2.1.0

ObjectDB 2.1.0

JPQL Update & Delete (JPA 1.0)

JPQL Update & Delete (JPA 1.0)

Integration with Java EE (JPA 1.0)

Integration with Java EE (JPA 1.0)

Retrieving JPA Entities

object with a primary key of 1 : Employee employee = em. find (Employee.class, 1 ); You do not need ... version of find : Employee employee = em. getReference (Employee.class, 1 ); The getReference method ... might contain a hollow Employee entity: Employee employee = em. find (Employee.class, 1 ); Employee managed

JPA Optimistic and Pessimistic Locking

entity is 1 when it is first stored in the database. In every transaction where an entity  ... with this mode marks the clean entity as modified (dirty) and increments its version number by 1 ... employee = em. find ( Employee.class, 1 , LockModeType . PESSIMISTIC_WRITE ); Similarly, the refresh

jakarta.persistence.criteria.CriteriaBuilder.union(CriteriaSelect,CriteriaSelect)

Jakarta Persistence (JPA) Method in jakarta.persistence.criteria.CriteriaBuilder CriteriaSelect union (    CriteriaSelect left ,    CriteriaSelect right ) Create a query which is the union of the given queries. Returns: a new criteria query which returns the union

jakarta.persistence.criteria.CriteriaBuilder.unionAll(CriteriaSelect,CriteriaSelect)

Jakarta Persistence (JPA) Method in jakarta.persistence.criteria.CriteriaBuilder CriteriaSelect unionAll (    CriteriaSelect left ,    CriteriaSelect right ) Create a query which is the union of the given queries, without elimination of duplicate results. Returns: a new

jakarta.persistence.criteria.CriteriaBuilder.intersect(CriteriaSelect,CriteriaSelect)

Jakarta Persistence (JPA) Method in jakarta.persistence.criteria.CriteriaBuilder CriteriaSelect intersect (    CriteriaSelect left ,    CriteriaSelect right ) Create a query which is the intersection of the given queries. Returns: a new criteria query which returns

jakarta.persistence.criteria.CriteriaBuilder.intersectAll(CriteriaSelect,CriteriaSelect)

Jakarta Persistence (JPA) Method in jakarta.persistence.criteria.CriteriaBuilder CriteriaSelect intersectAll (    CriteriaSelect left ,    CriteriaSelect right ) Create a query which is the intersection of the given queries, without elimination of duplicate results. Returns

jakarta.persistence.criteria.CriteriaBuilder.except(CriteriaSelect,CriteriaSelect)

Jakarta Persistence (JPA) Method in jakarta.persistence.criteria.CriteriaBuilder CriteriaSelect except (    CriteriaSelect left ,    CriteriaSelect right ) Create a query by (setwise) subtraction of the second query from the first query. Returns: a new criteria query

jakarta.persistence.criteria.CriteriaBuilder.exceptAll(CriteriaSelect,CriteriaSelect)

Jakarta Persistence (JPA) Method in jakarta.persistence.criteria.CriteriaBuilder CriteriaSelect exceptAll (    CriteriaSelect left ,    CriteriaSelect right ) Create a query by (setwise) subtraction of the second query from the first query, without elimination of duplicate

Different behavior for two equal queries

through null in one of the OR components. Navigation should be compiled as LEFT OUTER JOIN to avoid losing ... .communication.contact.individual.IndividualContact $ 1 WHERE (($ 1 .organisation.name LIKE '%Q ... .contact.individual.IndividualContact $ 1 WHERE (($ 1 .organisation.name LIKE '%Q%') OR ($ 1 .communication

jakarta.persistence.metamodel.EntityType

of the given name is not present in the managed type. Since: Jakarta Persistence (JPA) 1 .0 Set ... of the managed type. Since: Jakarta Persistence (JPA) 1 .0 Class getBindableJavaType () Return the Java ... . Since: Jakarta Persistence (JPA) 1 .0 BindableType getBindableType () Return the bindable type

jakarta.persistence.PersistenceConfiguration

of this PersistenceConfiguration class should use sharedCacheMode . Since: Jakarta Persistence (JPA) 1 .0 JDBC_DATASOURCE An instance of javax.sql.DataSource . Since: Jakarta Persistence (JPA) 1 .0 JDBC_DRIVER Fully qualified name of the JDBC driver class. Since: Jakarta Persistence (JPA) 1 .0 JDBC_PASSWORD Password for JDBC

Server out of memory exceptions

Server VM 1 .5.0_21 (on Windows 2003 5.2). Please report this error on http://www.objectdb.com/database ... . One of the databases has 2 writers and 1 reader. The other has a single writer and single reader ... ] Unexpected exception (Error 990) Generated by Java HotSpot(TM) 64-Bit Server VM 1 .5.0_21 (on Windows

jakarta.persistence.criteria.Subquery

Parameters: name - alias Returns: selection item. Since: Jakarta Persistence (JPA) 1 .0 Expression ... Persistence (JPA) 1 .0 Expression cast ( Class type ) Cast this expression to the specified type, returning ... of the containing query Returns: subquery root. Since: Jakarta Persistence (JPA) 1 .0 Join correlate ( Join

jakarta.persistence.metamodel.IdentifiableType

Persistence (JPA) 1 .0 Set getAttributes () Return the attributes of the managed type. Inherited from ManagedType Returns: attributes of the managed type. Since: Jakarta Persistence (JPA) 1 .0 ... . Since: Jakarta Persistence (JPA) 1 .0 CollectionAttribute getCollection ( String name ) Return

jakarta.persistence.metamodel.MappedSuperclassType

. Since: Jakarta Persistence (JPA) 1 .0 Set getAttributes () Return the attributes of the managed type. Inherited from ManagedType Returns: attributes of the managed type. Since: Jakarta Persistence (JPA) 1 .0 ... type. Since: Jakarta Persistence (JPA) 1 .0 CollectionAttribute getCollection ( String name ) Return

Issue with DISTINCT Select

.individual.IndividualContact $ 1 LEFT JOIN $ 1 .profile $2 WHERE ((TYPE($ 1 )=class com.quasado.foundation ... DISTINCT $ 1 FROM com.quasado.foundation.contact.individual.IndividualContact $ 1 LEFT JOIN $ 1 .profile $2 ... : SELECT DISTINCT $ 1 FROM IndividualContact $ 1 LEFT JOIN $ 1 .profile $2 ORDER BY UPPER($2.lastName) By

SELECT clause (JPQL / Criteria API)

(); for (Object[] result : results) { System.out.println( "Country: " + result[0] + ", Capital: " + result[ 1 ... ) { System.out.println( "Country: " + result[0] + ", Capital: " + result[ 1 ]); } CriteriaBuilder.tuple ... ("Country: " + t.get(0) + ", Capital: " + t.get( 1 )); } The Tuple interface defines several other methods

Auto Generated Values

. It takes a name, an initial value (default is 1 ), and an allocation size (default is 50). A sequence ... ="seq", initialValue = 1 , allocationSize =100) public class EntityWithSequenceId { // Use ... . This means that if you want sequence numbers to start with 1 when using the TABLE strategy, you must specify initialValue=0 in the @TableGenerator  annotation.

Server User List

to connect to the server only from the specified IP addresses. For example, "127.0.0. 1 " (the local computer ... of "192.18.0.0-192.18.194.255,127.0.0. 1 " allows connections from any IP address in the range 192.18.0.0 - 192.18.194.255 and from 127.0.0. 1 . The admin attribute, with a value of true or false , specifies

jakarta.persistence.EntityManager

StoredProcedureQuery EntityManagerFactory Since: Jakarta Persistence (JPA) 1 .0 The JPA Connections and Transactions ... . Since: Jakarta Persistence (JPA) 1 .0 void close () Close an application-managed entity manager ... : IllegalStateException - if the entity manager is container-managed. Since: Jakarta Persistence (JPA) 1 .0 boolean

jakarta.persistence.metamodel.ManagedType

the managed type. Since: Jakarta Persistence (JPA) 1 .0 Set getAttributes () Return the attributes of the managed type. Returns: attributes of the managed type. Since: Jakarta Persistence (JPA) 1 .0 ... Persistence (JPA) 1 .0 CollectionAttribute getCollection ( String name ) Return the Collection-valued

jakarta.persistence.metamodel.EmbeddableType

is not present in the managed type. Since: Jakarta Persistence (JPA) 1 .0 Set getAttributes () Return ... type. Since: Jakarta Persistence (JPA) 1 .0 CollectionAttribute getCollection ( String name , Class ... of the given name and type is not present in the managed type. Since: Jakarta Persistence (JPA) 1 .0

jakarta.persistence.StoredProcedureQuery

method will return either the update count (zero or greater) or - 1 if there is no update count (i.e ... Since: Jakarta Persistence (JPA) 2. 1 Public Instance Methods boolean execute () Return true if the first ... timeout value set and only the statement is rolled back. Since: Jakarta Persistence (JPA) 1 .0 int

2.9.x query issue with @Unique constraint

(for LEFT OUTER JOIN). [Step 4] Merge the results of steps 2, 3 using OR. [Step 5] Apply selection ... for :userName parameter 2.8.9 Query plan description ============================ [Step 1 ] Scan type ... ============================ [Step 1 ] Scan index User[userName] locating User (u) instances that satisfy

ObjectDB 2.4.0

. 1 . 1 web application (by catching unexpected exception). Fixed LEFT [ OUTER ] JOIN issues (including ... in the same query. Added support for using ObjectDB with GlassFish 3. 1 .2 . Added handling missing

Query Execution Error

This query SELECT DISTINCT $ 1 FROM com.lexware.vereinsverwaltung.verein.mitglied.Mitglied $ 1 LEFT JOIN $ 1 .mitgliedschaft $2 LEFT JOIN $2.abteilungen $3 LEFT JOIN $3.abteilung $4 WHERE (((NOT ((($2 ... FROM com.lexware.vereinsverwaltung.verein.mitglied.Mitglied $ 1 LEFT JOIN $ 1 .mitgliedschaft $2 LEFT

Apache License, Version 2.0, January 2004

TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1 . Definitions . "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. "Licensor" shall mean the copyright owner or entity authorized by the copyright

Literals in JPQL and Criteria Queries

both Java and SQL syntax for numeric literals. Numeric suffixes (for example, 1 .5F ) are also supported ... . literal ( 1 ); Expression i2 = cb. literal (Integer.ValueOf(2)); Expression d = cb. literal (3.4

Query Parameters in JPA

= ? 1 ", Country.class); return query. setParameter ( 1 , name). getSingleResult (); } The format

JPA Shared (L2) Entity Cache

(MyEntity2.class, Long.valueOf( 1 ), Collections. singletonMap( "jakarta.persistence.cache.retrieveMode ... (MyEntity2.class, Long.valueOf( 1 ), Collections. singletonMap( "jakarta.persistence.cache.storeMode

Updating JPA Entities

, 1 ); em. getTransaction (). begin (); employee.setNickname("Joe the Plumber"); em. getTransaction ... when entity classes are enhanced: Employee employee = em. find (Employee.class, 1 ); em. getTransaction

jakarta.persistence.criteria.CriteriaBuilder.In

, TupleElement Interface used to build in predicates. Since: Jakarta Persistence (JPA) 1 .0 Public Instance ... : name - alias Returns: selection item. Since: Jakarta Persistence (JPA) 1 .0 Expression as ( Class ... ) 1 .0 Expression cast ( Class type ) Cast this expression to the specified type, returning a new

jakarta.persistence.criteria.CriteriaBuilder.SimpleCase

which they are specified. Since: Jakarta Persistence (JPA) 1 .0 Public Instance Methods Selection alias ... : selection item. Since: Jakarta Persistence (JPA) 1 .0 Expression as ( Class type ) Perform ... expression of the given type. See Also: .cast(Class) Since: Jakarta Persistence (JPA) 1 .0 Expression cast

jakarta.persistence.EntityGraph

Persistence (JPA) 2. 1 Public Instance Methods AttributeNode addAttributeNode ( String attributeName ... . IllegalArgumentException - if the attribute is not an attribute of this managed type.. Since: Jakarta Persistence (JPA) 1 ... ) 1 .0 Subgraph addElementSubgraph ( PluralAttribute attribute ) Add a node to the graph

jakarta.persistence.criteria.Path

(JPA) 1 .0 Expression as ( Class type ) Perform a typecast upon the expression, returning a new ... ) Since: Jakarta Persistence (JPA) 1 .0 Expression cast ( Class type ) Cast this expression ... to the referenced attribute. Since: Jakarta Persistence (JPA) 1 .0 Expression get ( PluralAttribute

jakarta.persistence.criteria.AbstractQuery

Persistence (JPA) 1 .0 Root from ( Class entityClass ) Create and add a query root corresponding ... class Returns: query root corresponding to the given entity. Since: Jakarta Persistence (JPA) 1 .0 ... (JPA) 1 .0 List getGroupList () Return a list of the grouping expressions. Returns empty list

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:

Report Generation with BIRT and JPA

= x :     (0, 0), ( 1 , 1 ), (2, 2), ..., (999, 999) The BIRT report

NetBeans/JPA Java EE Tutorial

was written for NetBeans 6.9. 1 but it should work with other NetBeans versions as well (dialog boxes ... later is required if Glassfish 3. 1 .2 (or later) is used. The Tutorial Steps This tutorial consists of the following steps:

[ODB1] Chapter 6 - Persistent Objects

Persistence objects represent data in the database. 6. 1   Making Objects Persistent In ... of the first object in the database is always 1 , the ID of the second object is 2 ... ("@"); Object oid = pm.newObjectIdInstance(Class.forName(s[0]), s[ 1 ]); Person person = (Person)pm

[ODB1] Chapter 3 - Persistent Classes

. The JDO specification refers to persistent classes as persistence capable classes . 3. 1    ... of any of the persistent types defined above in the database (as demonstrated in section 2. 1 ... ObjectDB JDO Enhancer - Version 1 .00 Copyright (C) ObjectDB Software 2003. All rights reserved. Usage

[ODB1] Chapter 7 - JDOQL Queries

a specified order. 7. 1   Introduction to JDOQL A basic JDOQL query has the following ... . One of the useful string methods that is not supported by JDO 1 .0 but supported in ObjectDB ... : Calendar calendar = Calendar.getInstance(); calendar.clear(); calendar.set(2000, 0, 1 ); Date date

[ODB1] Chapter 5 - JDO Connections

and deleting database objects, are provided in the next chapter ( Chapter 6 ). 5. 1   javax ... at PersistenceManagerFactory level (as shown in section 5. 1 ), or at the PersistenceManager or Transaction levels