ObjectDB Database Search

151-200 of 200 results

Numbers in JPQL and Criteria Queries

) is evaluated to 1 .414213562373095 The SQRT function takes as an argument a numeric value of any

JPA Class Enhancer

to integrate enhancement into the build process: ... ... ... org.codehaus.mojo exec-maven-plugin 1 .6.0

JPA Query API

Jakarta Persistence (JPA) represents queries with two interfaces: the Query interface, which was the only query interface in JPA 1 , and the TypedQuery interface, which was introduced in JPA 2. The TypedQuery interface extends the Query interface. Use the Query interface primarily when the query

Deleting JPA Entities

: Employee employee = em. find (Employee.class, 1 ); em. getTransaction (). begin (); em. remove (employee

Comparison in JPQL and Criteria API

Most JPQL queries use at least one comparison operator in their WHERE clause. Comparison operators ObjectDB supports two sets of comparison operators, as shown in the following table: Set 1 : JPQL/SQL Set 2: Java/JDO Less Than Less Than or Equal To = Equal To = == Not Equal To != The main

ORDER BY clause (JPQL / Criteria API)

COUNT(c) 1 ORDER BY c.currency In the query above, the ORDER BY clause sorts the results by

ObjectDB Website - Terms and Conditions of Use

1 . Terms By accessing and using this web site, you agree to be bound by these web site Terms and Conditions of Use, all applicable laws and regulations, and agree that you are responsible for compliance with any applicable local laws. If you do not agree with any of these terms, you are prohibited

JPA Primary Key

( long ). The primary key of the first entity is 1 , the second is 2, and so on. Primary key values

jakarta.persistence.metamodel.ListAttribute

from Bindable Returns: Java type. Since: Jakarta Persistence (JPA) 1 .0 BindableType getBindableType ... type. Since: Jakarta Persistence (JPA) 1 .0 CollectionType getCollectionType () Return the collection type. Inherited from PluralAttribute Returns: collection type. Since: Jakarta Persistence (JPA) 1 .0

jakarta.persistence.metamodel.CollectionAttribute

attribute is returned. Inherited from Bindable Returns: Java type. Since: Jakarta Persistence (JPA) 1 .0 ... Bindable Returns: bindable type. Since: Jakarta Persistence (JPA) 1 .0 CollectionType ... . Since: Jakarta Persistence (JPA) 1 .0 ManagedType getDeclaringType () Return the managed type representing

jakarta.persistence.metamodel.SetAttribute

Bindable Returns: Java type. Since: Jakarta Persistence (JPA) 1 .0 BindableType getBindableType ... . Since: Jakarta Persistence (JPA) 1 .0 CollectionType getCollectionType () Return the collection type. Inherited from PluralAttribute Returns: collection type. Since: Jakarta Persistence (JPA) 1 .0

jakarta.persistence.metamodel.PluralAttribute

) 1 .0 BindableType getBindableType () Return the bindable type of the represented object. Inherited from Bindable Returns: bindable type. Since: Jakarta Persistence (JPA) 1 .0 CollectionType getCollectionType () Return the collection type. Returns: collection type. Since: Jakarta Persistence (JPA) 1 .0

GC Memory

] [ObjectDB 2.6. 1 ] Unexpected exception (Error 990)   Generated by Java HotSpot(TM) 64-Bit Server VM 1 .7.0_76 (on Windows 7 6. 1 ). Please report this error on http://www.objectdb.com/database/issue/new ... .o.PRG.af(PRG.java:553) at com.objectdb.o.QRM.Vb(QRM.java:286) I am doing a bulk load for customer

jakarta.persistence.JoinTable

Persistence (JPA) 1 .0 Annotation Elements String name (Optional) The name of the join table. Defaults ... . Default: "" Since: Jakarta Persistence (JPA) 1 .0 String catalog (Optional) The catalog of the table. Defaults to the default catalog. Default: "" Since: Jakarta Persistence (JPA) 1 .0 String schema

jakarta.persistence.JoinColumn

CollectionTable ForeignKey Since: Jakarta Persistence (JPA) 1 .0 Annotation Elements String name (Optional ... Persistence (JPA) 1 .0 String referencedColumnName (Optional) The name of the column referenced by ... of the referenced table. Default: "" Since: Jakarta Persistence (JPA) 1 .0 boolean unique (Optional

jakarta.persistence.MapKeyColumn

relationship field or property; " _ "; " KEY ". Default: "" Since: Jakarta Persistence (JPA) 1 .0 boolean ... and to constraints specified at the table level. Default: false Since: Jakarta Persistence (JPA) 1 .0 ... Persistence (JPA) 1 .0 boolean insertable (Optional) Whether the column is included in SQL INSERT

jakarta.persistence.MapKeyJoinColumn

and the default values apply. Example 1 : @Entity public class Company { @Id int id; ... @OneToMany ... ; " _ "; " KEY ". Default: "" Since: Jakarta Persistence (JPA) 1 .0 String referencedColumnName (Optional ... the primary key column of the referenced table. Default: "" Since: Jakarta Persistence (JPA) 1 .0 boolean

jakarta.persistence.EntityManagerFactory

Since: Jakarta Persistence (JPA) 1 .0 The JPA Connections and Transactions article explains how to use ... graph entityGraph - entity graph Since: Jakarta Persistence (JPA) 2. 1 void addNamedQuery ( String ... (JPA) 2. 1 R callInTransaction ( Function work ) Create a new application-managed EntityManager

jakarta.persistence.criteria.Fetch

: the resulting fetch join. Since: Jakarta Persistence (JPA) 1 .0 Fetch fetch ( SingularAttribute ... Returns: the resulting fetch join. Since: Jakarta Persistence (JPA) 1 .0 Fetch fetch ( PluralAttribute ... . Since: Jakarta Persistence (JPA) 1 .0 Fetch fetch ( PluralAttribute attribute , JoinType jt ) Create a fetch

jakarta.persistence.criteria.LocalDateField

day of the month, numbered from 1 . Since: Jakarta Persistence (JPA) 1 .0 MONTH The calendar month of the year, numbered from 1 . Since: Jakarta Persistence (JPA) 1 .0 QUARTER The calendar quarter, numbered from 1 to 4. Since: Jakarta Persistence (JPA) 1 .0 WEEK The ISO-8601 week number. Since: Jakarta

jakarta.persistence.SecondaryTable

, and have the same names and types as the referenced primary key columns of the primary table. Example 1 : Single ... (JPA) 1 .0 Annotation Elements String name (Required) The name of the table. Since: Jakarta Persistence (JPA) 1 .0 String catalog (Optional) The catalog of the table. Defaults to the default catalog

jakarta.persistence.metamodel.Attribute.PersistentAttributeType

, Serializable Since: Jakarta Persistence (JPA) 1 .0 Enum Constants BASIC Basic attribute Since: Jakarta Persistence (JPA) 1 .0 ELEMENT_COLLECTION Element collection Since: Jakarta Persistence (JPA) 1 .0 EMBEDDED Embeddable class attribute Since: Jakarta Persistence (JPA) 1 .0 MANY_TO_MANY Many-to-many association

jakarta.persistence.OptimisticLockException

.lock(Object, LockModeType, java.util.Map) Since: Jakarta Persistence (JPA) 1 .0 Public Constructors ... its detail message. Since: Jakarta Persistence (JPA) 1 .0 OptimisticLockException ( String message ... - the detail message. Since: Jakarta Persistence (JPA) 1 .0 OptimisticLockException ( String message

jakarta.persistence.PessimisticLockException

. Since: Jakarta Persistence (JPA) 1 .0 PessimisticLockException ( String message ) Constructs a new ... . Since: Jakarta Persistence (JPA) 1 .0 PessimisticLockException ( String message , Throwable cause ... . Parameters: cause - the cause. message - the detail message. Since: Jakarta Persistence (JPA) 1 .0

jakarta.persistence.LockTimeoutException

exception with null as its detail message. Since: Jakarta Persistence (JPA) 1 .0 LockTimeoutException ... . Parameters: message - the detail message. Since: Jakarta Persistence (JPA) 1 .0 LockTimeoutException ... Persistence (JPA) 1 .0 LockTimeoutException ( Throwable cause ) Constructs a new

jakarta.persistence.EntityTransaction

the EntityTransaction interface. Since: Jakarta Persistence (JPA) 1 .0 The JPA Connections ... (JPA) 1 .0 void commit () Commit the current resource transaction, writing any unflushed changes ... - if the commit fails. Since: Jakarta Persistence (JPA) 1 .0 boolean getRollbackOnly () Determine

jakarta.persistence.metamodel.Attribute

. Returns: declaring type. Since: Jakarta Persistence (JPA) 1 .0 Member getJavaMember () Return ... .Member . Since: Jakarta Persistence (JPA) 1 .0 Class getJavaType () Return the Java type of the represented attribute. Returns: Java type. Since: Jakarta Persistence (JPA) 1 .0 String getName () Return

jakarta.persistence.Tuple

Persistence (JPA) 1 .0 X get ( String alias , Class type ) Get the value of the tuple element ... to the specified type. Since: Jakarta Persistence (JPA) 1 .0 Object get ( String alias ) Get the value ... correspond to an element in the query result tuple. Since: Jakarta Persistence (JPA) 1 .0 X get ( int

jakarta.persistence.criteria.FetchParent

Persistence (JPA) 1 .0 Fetch fetch ( SingularAttribute attribute , JoinType jt ) Create a fetch join ... attribute - target of the join Returns: the resulting fetch join. Since: Jakarta Persistence (JPA) 1 .0 ... . Since: Jakarta Persistence (JPA) 1 .0 Fetch fetch ( PluralAttribute attribute , JoinType jt ) Create

jakarta.persistence.CollectionTable

an underscore. Default: "" Since: Jakarta Persistence (JPA) 1 .0 String catalog (Optional) The catalog ... (JPA) 1 .0 String schema (Optional) The schema of the table. If not specified, the default schema for the user is used. Default: "" Since: Jakarta Persistence (JPA) 1 .0 JoinColumn[] joinColumns

jakarta.persistence.QueryTimeoutException

with null as its detail message. Since: Jakarta Persistence (JPA) 1 .0 QueryTimeoutException ( String ... . Parameters: message - the detail message. Since: Jakarta Persistence (JPA) 1 .0 QueryTimeoutException ... Persistence (JPA) 1 .0 QueryTimeoutException ( Throwable cause ) Constructs a new

jakarta.persistence.NamedStoredProcedureQuery

StoredProcedureParameter Since: Jakarta Persistence (JPA) 2. 1 Annotation Elements String name The name used to refer ... . Since: Jakarta Persistence (JPA) 1 .0 String procedureName The name of the stored procedure in the database. Since: Jakarta Persistence (JPA) 1 .0 StoredProcedureParameter[] parameters Information

jakarta.persistence.OneToOne

property. Example 1 : One-to-one association that maps a foreign key column // On Customer class: @OneToOne ... assignedTo; ... } Since: Jakarta Persistence (JPA) 1 .0 Annotation Elements Class targetEntity (Optional ... property that stores the association. Default: void/class Since: Jakarta Persistence (JPA) 1 .0 CascadeType

Query on primary key is slow when using 'IN'

= '1344770') Query plan 1 /2 description ============================ [Step 1 ] Scan type eu.extech ... .productVariantOid='1344763'). [Step 3] Merge the results of steps 1 , 2 using OR. [Step 4] Filter the results ... .storeOid = '1205450' AND d.productVariantOid IN ('1344763', '1344770') Query plan 1 / 1 description

Enhanced classes problem

.core.cache.entity.CacheableJobStat.__odbGet_jobId(CacheableJobStat.java: 1 ) at eu.ysoft.safeq.core ... (ReplicationMarkerGeneratorJob.java:36) at org.quartz.core.JobRunShell.run(JobRunShell.java:202) ... 1 more Caused ... .CacheableJobStat.__odbSetMember(CacheableJobStat.java: 1 ) at com.objectdb.o.UMR.E(UMR.java:692) at com

jakarta.persistence.GenerationType

Persistence (JPA) 1 .0 The Auto Generated Values article explains how to use GenerationType . Enum ... . Since: Jakarta Persistence (JPA) 1 .0 IDENTITY Indicates that the persistence provider must assign ... Long , Integer , long , or int . Since: Jakarta Persistence (JPA) 1 .0 SEQUENCE Indicates

jakarta.persistence.ManyToMany

notation is the name of the respective embedded field or property. Example 1 : // In Customer class ... ) 1 .0 Annotation Elements Class targetEntity (Optional) The entity class that is the target ... using generics. Default: void/class Since: Jakarta Persistence (JPA) 1 .0 CascadeType[] cascade

jakarta.persistence.ManyToOne

with the dot notation is the name of the respective embedded field or property. Example 1 : @ManyToOne(optional ... = "jobInfo.pm") Collection manages; } Since: Jakarta Persistence (JPA) 1 .0 Annotation Elements Class ... ) 1 .0 CascadeType[] cascade (Optional) The operations that must be cascaded to the target

jakarta.persistence.NamedEntityGraph

, and may be passed to EntityManager.find . Since: Jakarta Persistence (JPA) 2. 1 Annotation Elements String ... Persistence (JPA) 1 .0 NamedAttributeNode[] attributeNodes (Optional) A list of attributes of the entity that are included in this graph. Default: {} Since: Jakarta Persistence (JPA) 1 .0 boolean

jakarta.persistence.metamodel.Metamodel

. Since: Jakarta Persistence (JPA) 1 .0 EntityType entity ( String entityName ) Return the metamodel ... . Since: Jakarta Persistence (JPA) 1 .0 Set getEmbeddables () Return the metamodel embeddable types. Returns ... . Since: Jakarta Persistence (JPA) 1 .0 Set getEntities () Return the metamodel entity types. Returns: the metamodel

jakarta.persistence.CascadeType

OneToOne.cascade OneToMany.cascade ManyToMany.cascade Since: Jakarta Persistence (JPA) 1 .0 Enum Constants ALL Cascade all operations Since: Jakarta Persistence (JPA) 1 .0 DETACH Cascade the detach ... Persistence (JPA) 1 .0 PERSIST Cascade the persist operation Since: Jakarta Persistence (JPA) 1 .0 REFRESH

jakarta.persistence.SequenceGenerator

) Since: Jakarta Persistence (JPA) 1 .0 The Auto Generated Values article explains how to use SequenceGenerator ... Persistence (JPA) 1 .0 String sequenceName (Optional) The name of the database sequence object from ... Persistence (JPA) 1 .0 String catalog (Optional) The catalog of the sequence generator. Default

Java EE Web Tutorial

This tutorial demonstrates how to create and run a full Java EE 6 MVC (Model View Controller) web application using GlassFish, ObjectDB and JPA. Since this web application uses Java EE 6 EJB (session beans) it requires a full Java EE 6 application server, such as GlassFish 3.0. 1 or JBoss AS 6

NetBeans/JPA Spring MVC Web Tutorial

for NetBeans 6.9. 1 but it should work with other NetBeans versions as well (dialog boxes and menus might look

Eclipse/JPA Web Application Tutorial

(just download and extract). The tutorial was written for Eclipse 3.6. 1 but it should work

Step 6: Design a BIRT Report Table

In this final step we will add a simple table to the report: Open the [Insert Table] dialog box by dragging a Table from the [Palette] window and dropping it on the report design (.rptdesign) layout. Set the column number to 2 , number of details to 1 , select the data set (e.g. Points by X

Getting Started with JPA

. The sample application is also explained in details in  Chapter 1 of the  ObjectDB Manual , but if you prefer

Getting Started with JPA and NetBeans

). The tutorial was written for NetBeans 6.9. 1 but it should work with other NetBeans versions as

Step 7: Run the Spring Web App

/Guestbook/. This tutorial should also run with GlassFish 3.0. 1 , with a small change in

[ODB1] Chapter 4 - JDO Metadata

and the other resources (possibly in a jar file). 4. 1   JDO Metadata Files During JDO enhancement and later