ObjectDB Database Search

151-200 of 200 results

Problems with Tutorials » JPA Web App (Tomcat) » NetBeans JPA Web App

Problems with Tutorials » JPA Web App (Tomcat) » NetBeans JPA Web App

Can I use ObjectDB to access a relational database?

To access relational databases using the Java Persistence API ( JPA ) you will need an Object Relational Mapping (ORM) tool, such as Hibernate, TopLink, EclipseLink, Open JPA or DataNucleus. The DataNucleus ORM implementation supports also the Java Data Objects (JDO) API. ObjectDB is a full featured

Entity Management Settings

and as "false" when you use JPA . The on-persist attribute specifies whether to apply cascading (as ... and flush operations. Note: Both JPA and JDO require cascading the persist operation twice: first

ORDER BY clause (JPQL / Criteria API)

the SELECT expressions can be used in the ORDER BY clause. Some JPA implementations are more restrictive. Path expressions are supported by all JPA implementations, but support for other JPQL

ObjectDB Overview

- managed only by standard Java APIs ( JPA / JDO 2). Extremely fast - faster than any other JPA / JDO

Chapter 1 - Quick Tour

This chapter demonstrates basic ObjectDB and JPA concepts by introducing a simple example program. After reading this chapter, you will be able to write basic programs that create, open, and close ... instructions on how to start using JPA in your IDE with the ObjectDB object database. Because ObjectDB

jakarta.persistence.criteria.Predicate

Jakarta Persistence ( JPA ) Interface jakarta.persistence.criteria.Predicate Super Interfaces ... . Since: Jakarta Persistence ( JPA ) 2.0 The Logical Operators in JPQL and Criteria API article explains ... Persistence ( JPA ) 1.0 Expression as ( Class type ) Perform a typecast upon the expression, returning

jakarta.persistence.criteria.CriteriaBuilder.Case

Jakarta Persistence ( JPA ) Interface in jakarta.persistence.criteria.CriteriaBuilder jakarta ... which they are specified. Since: Jakarta Persistence ( JPA ) 1.0 Public Instance Methods Selection alias ( String ... : selection item. Since: Jakarta Persistence ( JPA ) 1.0 Expression as ( Class type ) Perform a typecast

jakarta.persistence.criteria.AbstractQuery

Jakarta Persistence ( JPA ) Interface jakarta.persistence.criteria.AbstractQuery Type Parameters ... own joins). All queries may have: a conjunction of restrictions. Since: Jakarta Persistence ( JPA ) 2.0 ... Persistence ( JPA ) 1.0 Root from ( Class entityClass ) Create and add a query root corresponding

jakarta.persistence.criteria.ParameterExpression

Jakarta Persistence ( JPA ) Interface jakarta.persistence.criteria.ParameterExpression Type ... , TupleElement Type of criteria query parameter expressions. Since: Jakarta Persistence ( JPA ) 2.0 Public ... Selection Parameters: name - alias Returns: selection item. Since: Jakarta Persistence ( JPA ) 1.0

jakarta.persistence.criteria.CriteriaBuilder.Coalesce

Jakarta Persistence ( JPA ) Interface in jakarta.persistence.criteria.CriteriaBuilder jakarta ... otherwise. Since: Jakarta Persistence ( JPA ) 1.0 Public Instance Methods Selection alias ( String ... : selection item. Since: Jakarta Persistence ( JPA ) 1.0 Expression as ( Class type ) Perform a typecast

jakarta.persistence.criteria.Expression

Jakarta Persistence ( JPA ) Interface jakarta.persistence.criteria.Expression Type Parameters ... . Since: Jakarta Persistence ( JPA ) 2.0 The JPA Query Expressions (JPQL / Criteria) article explains ... Persistence ( JPA ) 1.0 Expression as ( Class type ) Perform a typecast upon the expression, returning a new

JPA Metamodel (JPA 2.0)

The JPA Metamodel API enables examining the classes, fields and properties of the persistent object model, similarly to the Java reflection API. The JPA Metamodel API has a major role in defining queries using the JPA Criteria API. support Support Implementation of the JPA Metamodel API was just

JPA Query Criteria API (JPA 2.0)

The JPA Criteria API supports dynamic definition of JPQL queries using CriteriaBuilder as a factory. ObjectDB supports dynamic definition of JPQL queries as strings. Support of the new JPA 2 Criteria API in expected in future versions. support Support   Implementation of the JPA Criteria

jakarta.persistence.criteria.CriteriaUpdate

Jakarta Persistence ( JPA ) Interface jakarta.persistence.criteria.CriteriaUpdate Type Parameters ... . A CriteriaUpdate object must have a single root. Since: Jakarta Persistence ( JPA ) 2.1 Public Instance ... . Since: Jakarta Persistence ( JPA ) 1.0 Root from ( EntityType entity ) Create and add a query root

jakarta.persistence.Column

Jakarta Persistence ( JPA ) Annotation Type jakarta.persistence.Column Implemented Interfaces ... of type numeric or decimal . Since: Jakarta Persistence ( JPA ) 1.0 Annotation Elements String name ... Persistence ( JPA ) 1.0 boolean unique (Optional) Whether the column is a unique key

jakarta.persistence.metamodel.SingularAttribute

Jakarta Persistence ( JPA ) Interface jakarta.persistence.metamodel.SingularAttribute Type ... -valued properties or fields. Since: Jakarta Persistence ( JPA ) 2.0 Public Instance Methods Class ... Bindable Returns: Java type. Since: Jakarta Persistence ( JPA ) 1.0 BindableType getBindableType

jakarta.persistence.metamodel.MapAttribute

Jakarta Persistence ( JPA ) Interface jakarta.persistence.metamodel.MapAttribute Type Parameters ... Persistence ( JPA ) 2.0 Public Instance Methods Class getBindableJavaType () Return the Java type ... Persistence ( JPA ) 1.0 BindableType getBindableType () Return the bindable type of the represented object

jakarta.persistence.JoinTable

Jakarta Persistence ( JPA ) Annotation Type jakarta.persistence.JoinTable Implemented Interfaces ... 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

jakarta.persistence.JoinColumn

Jakarta Persistence ( JPA ) Annotation Type jakarta.persistence.JoinColumn Implemented Interfaces ... 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

jakarta.persistence.TableGenerator

Jakarta Persistence ( JPA ) Annotation Type jakarta.persistence.TableGenerator Implemented ... ; ... } See Also: GeneratedValue Since: Jakarta Persistence ( JPA ) 1.0 The Auto Generated Values article ... : "" Since: Jakarta Persistence ( JPA ) 1.0 String table (Optional) Name of the table that stores

jakarta.persistence.MapKeyColumn

Jakarta Persistence ( JPA ) Annotation Type jakarta.persistence.MapKeyColumn Implemented Interfaces ... to filename ... } Since: Jakarta Persistence ( JPA ) 2.0 Annotation Elements String name (Optional ... relationship field or property; " _ "; " KEY ". Default: "" Since: Jakarta Persistence ( JPA ) 1.0 boolean

jakarta.persistence.metamodel.ListAttribute

Jakarta Persistence ( JPA ) Interface jakarta.persistence.metamodel.ListAttribute Type Parameters ... java.util.List -valued attributes. Since: Jakarta Persistence ( JPA ) 2.0 Public Instance Methods Class ... from Bindable Returns: Java type. Since: Jakarta Persistence ( JPA ) 1.0 BindableType getBindableType

jakarta.persistence.metamodel.CollectionAttribute

Jakarta Persistence ( JPA ) Interface jakarta.persistence.metamodel.CollectionAttribute Type ... CollectionAttribute represent persistent java.util.Collection -valued attributes. Since: Jakarta Persistence ( JPA ) 2.0 ... attribute is returned. Inherited from Bindable Returns: Java type. Since: Jakarta Persistence ( JPA ) 1.0

jakarta.persistence.metamodel.SetAttribute

Jakarta Persistence ( JPA ) Interface jakarta.persistence.metamodel.SetAttribute Type Parameters ... .util.Set -valued attributes. Since: Jakarta Persistence ( JPA ) 2.0 Public Instance Methods Class ... Bindable Returns: Java type. Since: Jakarta Persistence ( JPA ) 1.0 BindableType getBindableType

jakarta.persistence.metamodel.PluralAttribute

Jakarta Persistence ( JPA ) Interface jakarta.persistence.metamodel.PluralAttribute Type Parameters ... PluralAttribute represent persistent collection-valued attributes. Since: Jakarta Persistence ( JPA ... attribute is returned. Inherited from Bindable Returns: Java type. Since: Jakarta Persistence ( JPA

jakarta.persistence.criteria.LocalDateTimeField

Jakarta Persistence ( JPA ) Class jakarta.persistence.criteria.LocalDateTimeField java.lang.Object ... which can be extracted from a LocalDateTime . Since: Jakarta Persistence ( JPA ) 3.2 Public Static Fields DATE The date part of a datetime. Since: Jakarta Persistence ( JPA ) 1.0 DAY The calendar day of the month

jakarta.persistence.PersistenceUnitUtil

Jakarta Persistence ( JPA ) Interface jakarta.persistence.PersistenceUnitUtil Super Interfaces ... Persistence ( JPA ) 2.0 Public Instance Methods Class getClass ( T entity ) Return the concrete entity ... cannot be loaded from the database. Since: Jakarta Persistence ( JPA ) 3.2 Object getIdentifier ( Object

jakarta.persistence.MapKeyJoinColumn

Jakarta Persistence ( JPA ) Annotation Type jakarta.persistence.MapKeyJoinColumn Implemented ... ; ... } See Also: ForeignKey Since: Jakarta Persistence ( JPA ) 2.0 Annotation Elements String name ... ; " _ "; " KEY ". Default: "" Since: Jakarta Persistence ( JPA ) 1.0 String referencedColumnName (Optional

jakarta.persistence.criteria.Fetch

Jakarta Persistence ( JPA ) Interface jakarta.persistence.criteria.Fetch Type Parameters ... -fetched association or attribute. Since: Jakarta Persistence ( JPA ) 2.0 Public Instance Methods Fetch ... : the resulting fetch join. Since: Jakarta Persistence ( JPA ) 1.0 Fetch fetch ( SingularAttribute

jakarta.persistence.SecondaryTable

Jakarta Persistence ( JPA ) Annotation Type jakarta.persistence.SecondaryTable Implemented ... ( 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

Database Management Settings

is defined in the entity class. Some ORM JPA providers require a version field. You can disable

Server Configuration

the connection URL string, as explained in the JPA Overview section. The max attribute specifies

Strings in JPQL and Criteria Queries

that are described above are also available as JPA criteria query expressions. The CriteriaBuilder

FROM clause (JPQL / Criteria API)

, the OUTER JOIN variant returns Nauru with a NULL value as its capital. [LEFT [OUTER] | INNER] JOIN FETCH JPA

Logical Operators in JPQL and Criteria API

Logical operators in JPQL and JPA criteria queries combine simple Boolean expressions to form complex expressions. Logical operators ObjectDB supports two sets of logical operators, as shown in the following table: Set 1: JPQL / SQL Set 2: Java / JDO AND && OR || NOT ! JPQL uses SQL notation

Index Definition

@Index and @Unique annotations to define indexes. Note that JPA's @Index annotation cannot be applied

Auto Generated Values

( strategy = GenerationType . TABLE , generator ="tab") @Id long id; } ORM-based JPA providers (such as

What are the main benefits of using ObjectDB?

processes JPQL ( JPA Query Language) and JDOQL (JDO Query Language) queries directly, where ORM tools first

Step 1: Create a Web Project

: Now you should have an Eclipse Dynamic Web project with ObjectDB/ JPA support. The next step is creating a JPA Entity class .

Step 5: Add a JSP Page

content: JPA Guestbook Web Application Tutorial Name: The JSP generates the guestbook page output

Step 4: Run the Application

: This is the end of the tutorial. Learn more about ObjectDB and JPA by reading the Manual .

Step 6: Set the Spring XML

and transactions), to inject a JPA   EntityManager , to manage transactions and to look for JSP pages in

Step 3: Add a Context Listener Class

The Guest entities will be stored in an ObjectDB database, which will be represented by a JPA's EntityManagerFactory instance with a global application scope. We have to register a ServletContextListener to perform initialization and cleanup operations: The database will be opened (or created

Step 6: Set the Spring XML

, controllers and transactions), to inject a JPA EntityManager , to manage transactions and to look

Step 7: Run the Spring Web App

; ObjectDB Explorer : This is the end of the tutorial. Learn more about ObjectDB and JPA by reading the  Manual .

Step 6: Run the Java EE 6 Application

: This is the end of the tutorial. Learn more about ObjectDB and JPA by reading the Manual .

Step 5: Add a JSP Page

to create the new JSP file. Now replace the content of the new jsp file with the following content: JPA

Step 6: Run the Web Application

the database file in ObjectDB Explorer : This is the end of the tutorial. Learn more about ObjectDB and JPA by reading the Manual .

What is the Java Data Objects (JDO)?

The Java Data Objects (JDO) is another standard for accessing persistent data in databases, using plain old Java objects (POJO) to represent the object model. Unlike Java Persistence API ( JPA ), which is designated to be used with relational databases, JDO is designated to be used