ObjectDB Database Search

101-150 of 200 results

JBOSS AS7 7.1.1 - Entity not persisted and createNamedQuery fire exception

I'm trying to have the guestbook example running in the following environment: jboss as 7. 1 . 1 final oracle jdk 1 .7.0_04 maven 3.0.4 objectdb 2.4.0_04 installed as a module of jboss No IDE is used ... :13,454 INFO  [stdout] (http--127.0.0. 1 -8080- 1 ) persisted Guest count: 0 18:51:18,219 INFO 

NoSuchFieldError: __odbTracker on NetBeans 7.3 + JBoss 7.1.1

+ Jboss 7. 1 . 1 @Entity public class Person extends AbstractObject { private static final long ... hash; } @Override public boolean equals( Object object ) { // TODO: Warning - this method won't work in the case the id fields are not set if (!( object instanceof AbstractObject)) { return false

jakarta.persistence.criteria.PluralJoin

selection. Since: Jakarta Persistence (JPA) 1 .0 From getCorrelationParent () Returns the parent From object ... : the modified join object . Since: Jakarta Persistence (JPA) 2. 1 Join on ( Predicate... restrictions ... Returns: selection item. Since: Jakarta Persistence (JPA) 1 .0 Expression as ( Class type ) Perform

jakarta.persistence.criteria.SetJoin

Returns: parent. Since: Jakarta Persistence (JPA) 1 .0 Predicate in ( Object ... values ) Create ... Persistence (JPA) 1 .0 boolean isCorrelated () Whether the From object has been obtained as a result ... whether the object has been obtained through correlation. Since: Jakarta Persistence (JPA) 1 .0 Predicate

jakarta.persistence.criteria.CollectionJoin

expression Returns: the modified join object . Since: Jakarta Persistence (JPA) 2. 1 CollectionJoin ... Parameters: name - alias Returns: selection item. Since: Jakarta Persistence (JPA) 1 .0 Expression as ( Class type ) Perform a typecast upon the expression, returning a new expression object . Unlike

FROM clause (JPQL / Criteria API)

The FROM clause declares query identification variables for iterating over objects in the database ... because both are used to iterate over objects . Range variables Range variables are query identification variables that iterate over all the database objects of a specific entity class hierarchy, which includes

jakarta.persistence.TypedQuery

Persistence (JPA) 1 .0 CacheRetrieveMode getCacheRetrieveMode () The cache retrieval mode that will be in ... result the query object was set to retrieve. Returns 0 if setFirstResult was not applied to the query object . Inherited from Query Returns: position of the first result. Since: Jakarta Persistence (JPA

Comparison in JPQL and Criteria API

ObjectDB supports two sets of comparison operators, as shown in the following table: Set 1 : JPQL ... rather than object identity. Data and Time values: Any comparison operator can be used ... rather than object identity. boolean and Boolean values: Can be compared using the equality operators

jakarta.persistence.Query

been joined to the transaction. Since: Jakarta Persistence (JPA) 1 .0 Object getSingleResultOrNull ... . Since: Jakarta Persistence (JPA) 1 .0 Query setHint ( String hintName , Object value ) Set a query ... in java.time . Since: Jakarta Persistence (JPA) 1 .0 Query setParameter ( int position , Object value

jakarta.persistence.PersistenceConfiguration

Jakarta Persistence (JPA) Class jakarta.persistence.PersistenceConfiguration java.lang. Object ... 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

jakarta.persistence.criteria.From

object corresponding to the path. Since: Jakarta Persistence (JPA) 1 .0 Path getParentPath () Return ... . Since: Jakarta Persistence (JPA) 1 .0 Predicate in ( Object ... values ) Create a predicate to test ... . Since: Jakarta Persistence (JPA) 1 .0 Expression as ( Class type ) Perform a typecast

Updating JPA Entities

, 1 ); em. getTransaction (). begin (); employee.setNickname("Joe the Plumber"); em. getTransaction ... detect changes to managed entities. One detection method is to save a snapshot of each managed object when it is retrieved from the database and then compare that snapshot to the object's current state

jakarta.persistence.criteria.Root

. Since: Jakarta Persistence (JPA) 1 .0 From getCorrelationParent () Returns the parent From object from ... Persistence (JPA) 1 .0 Predicate in ( Object ... values ) Create a predicate to test whether the expression ... Selection Parameters: name - alias Returns: selection item. Since: Jakarta Persistence (JPA) 1 .0

each 1-2 days objects on some objectdb level lock/block each other

. The objects that are added to the heap are related to: ( 1 ) the L2 cache, (2) the query caches ... each 1 -2 days we have the situation that our system changes to a completely underperforming mode ... select queries without any object manipulation in these threads hgzwicker Hans-Georg Zwicker

Auto Generated Values

. This generator creates automatic object IDs for entities that do not have defined primary key ... . 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

JPA Entity Fields

declared type, including a generic java.lang. Object , as long as the actual runtime value ... is populated with a mapping of employee names to their corresponding Employee objects . Single-value ... of a new entity is 1 when it's stored in the database for the first time. In every transaction

JPA Persistable Types

can be stored in the database only as embedded objects , that is, as part of a containing entity. A class ... in the debugger view and when invoking the getClass method on an object of a proxy class. Enum Types ... are stored as ordinal numbers (0, 1 , and 2), while values of the color3 field are stored as strings

ORDER BY clause (JPQL / Criteria API)

produces objects for examination, and the WHERE clause filters them. Then, the SELECT clause builds ... objects ordered by currency as the primary sort key and by name as the secondary sort key: SELECT c ... COUNT(c) 1 ORDER BY c.currency In the query above, the ORDER BY clause sorts the results by

Running JPA Queries

when exactly one result object is expected. Query.getResultList () : Use in any other case ... when exactly one result object is expected. TypedQuery.getResultList () : Use in any other case. In ... ()) The following query retrieves all the Country objects in the database. Use the getResultList() method

jakarta.persistence.criteria.CriteriaQuery

.. Since: Jakarta Persistence (JPA) 1 .0 Root from ( Class entityClass ) Create and add a query root ... to the given entity. Since: Jakarta Persistence (JPA) 1 .0 Root from ( EntityType entity ) Create and add ... Returns: query root corresponding to the given entity. Since: Jakarta Persistence (JPA) 1 .0 List

Literals in JPQL and Criteria Queries

both Java and SQL syntax for numeric literals. Numeric suffixes (for example, 1 .5F ) are also supported ... object and returns a literal expression. For example: // Boolean literals: Expression t = cb ... . literal ( 1 ); Expression i2 = cb. literal (Integer.ValueOf(2)); Expression d = cb. literal (3.4

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 ... (); The Cache object lets you check if a specified entity is cached: boolean isCached = cache

jakarta.persistence.OptimisticLockException

.lock( Object , LockModeType, java.util.Map) Since: Jakarta Persistence (JPA) 1 .0 Public Constructors ... Jakarta Persistence (JPA) Class jakarta.persistence.OptimisticLockException java.lang. Object ... , will be marked for rollback. See Also: EntityManager.find(Class, Object , LockModeType) EntityManager

jakarta.persistence.criteria.LocalDateTimeField

(JPA) 1 .0 Additional JDK methods inherited from java.lang. Object java.lang. Object /clone(), java.lang ... Jakarta Persistence (JPA) Class jakarta.persistence.criteria.LocalDateTimeField java.lang. Object ... The date part of a datetime. Since: Jakarta Persistence (JPA) 1 .0 DAY The calendar day of the month

Detached JPA Entities

Detached entities are objects in a special state where they are not managed by an EntityManager but still represent objects in the database. Compared to managed entities, detached objects have limited functionality: Many JPA methods, for example, lock , do not accept detached objects . Retrieval by

Managing JPA Entities

) that represent physical objects in the database. Managing an ObjectDB database with JPA requires using entities for many operations, including storing, retrieving, updating, and deleting database objects ... . When an entity is first created, its state is New . In this state, the object is not yet associated

jakarta.persistence.EntityNotFoundException

Jakarta Persistence (JPA) Class jakarta.persistence.EntityNotFoundException java.lang. Object ... is accessed but the entity does not exist. Thrown when EntityManager.refresh is called and the object ... .getReference(Class, Object ) EntityManager.refresh( Object ) EntityManager.refresh( Object , LockModeType

jakarta.persistence.LockTimeoutException

) 1 .0 LockTimeoutException ( Object entity ) Constructs a new LockTimeoutException exception with the specified object . Parameters: entity - the entity. Since: Jakarta Persistence (JPA) 1 .0 ... Jakarta Persistence (JPA) Class jakarta.persistence.LockTimeoutException java.lang. Object ∟ java

jakarta.persistence.criteria.LocalDateField

) 1 .0 Additional JDK methods inherited from java.lang. Object java.lang. Object /clone(), java.lang ... Jakarta Persistence (JPA) Class jakarta.persistence.criteria.LocalDateField java.lang. Object ... day of the month, numbered from 1 . Since: Jakarta Persistence (JPA) 1 .0 MONTH The calendar month

Paths and Types in JPQL and Criteria API

as arguments. Path expressions that navigate from one object to another. Instances of user-defined ... fields to other objects and values. For example, in the expression c.capital , c represents a Country ... identification variable iterates over all the Country objects in the database. For a country with no capital

jakarta.persistence.PessimisticLockException

Jakarta Persistence (JPA) Class jakarta.persistence.PessimisticLockException java.lang. Object ... . Since: Jakarta Persistence (JPA) 1 .0 PessimisticLockException ( String message ) Constructs a new ... . Since: Jakarta Persistence (JPA) 1 .0 PessimisticLockException ( String message , Throwable cause

jakarta.persistence.metamodel.Attribute.PersistentAttributeType

.metamodel.Attribute.PersistentAttributeType java.lang. Object ∟ java.lang.Enum ∟ jakarta.persistence ... , 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

jakarta.persistence.metamodel.EntityType

of the represented object . Inherited from Bindable Returns: bindable type. Since: Jakarta Persistence (JPA) 1 .0 ... 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

jakarta.persistence.LockModeType

Jakarta Persistence (JPA) Enum jakarta.persistence.LockModeType java.lang. Object ∟ java.lang.Enum ... .OPTIMISTIC on a versioned object , the entity manager must ensure that neither of the following ... of type LockModeType.OPTIMISTIC_FORCE_INCREMENT on a versioned object , will also force an update

ObjectDB License Agreement [ver. 2.0.4]

of this agreement will be binding, unless in writing and signed by an authorized representative of each party. 1 ... and objects in a database file. The full edition of the Software (without the restrictions

Strings in JPQL and Criteria Queries

). Therefore, the position of the first character is 1 . A value of zero ( 0 ) is returned if the substring is not ... demonstrates, most methods are overloaded to support optional arguments and to accept both simple Java objects and criteria expressions.

Numbers in JPQL and Criteria Queries

) is evaluated to 1 .414213562373095 The SQRT function takes as an argument a numeric value of any ... expression or a simple Java numeric object . // Create path and parameter expressions: Expression path

JPA Class Enhancer

. Without enhancement, only persistent collection and map fields can be loaded lazily (by using proxy objects ... to integrate enhancement into the build process: ... ... ... org.codehaus.mojo exec-maven-plugin 1 .6.0

jakarta.persistence.GenerationType

Jakarta Persistence (JPA) Enum jakarta.persistence.GenerationType java.lang. Object ∟ java.lang ... 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

jakarta.persistence.CascadeType

Jakarta Persistence (JPA) Enum jakarta.persistence.CascadeType java.lang. Object ∟ java.lang.Enum ... 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

Defining a JPA Entity Class

To store Point objects in a database using JPA, you must define an entity class . A JPA entity class is a POJO (Plain Old Java Object ), an ordinary Java class that is marked (annotated) to indicate that it can represent objects in the database. Conceptually, this is similar to serializable classes

jakarta.persistence.metamodel.PluralAttribute.CollectionType

.persistence.metamodel.PluralAttribute.CollectionType java.lang. Object ∟ java.lang.Enum ∟ jakarta.persistence ... , Serializable Since: Jakarta Persistence (JPA) 1 .0 Enum Constants COLLECTION Collection-valued attribute Since: Jakarta Persistence (JPA) 1 .0 LIST List-valued attribute Since: Jakarta Persistence (JPA) 1 .0 MAP

jakarta.persistence.metamodel.Type.PersistenceType

.Type.PersistenceType java.lang. Object ∟ java.lang.Enum ∟ jakarta.persistence.metamodel.Type ... (JPA) 1 .0 Enum Constants BASIC Basic type Since: Jakarta Persistence (JPA) 1 .0 EMBEDDABLE Embeddable class Since: Jakarta Persistence (JPA) 1 .0 ENTITY Entity class Since: Jakarta Persistence (JPA) 1 .0

jakarta.persistence.SharedCacheMode

Jakarta Persistence (JPA) Enum jakarta.persistence.SharedCacheMode java.lang. Object ∟ java.lang ... and entity-related state and data are cached. Since: Jakarta Persistence (JPA) 1 .0 DISABLE ... for which Cacheable(false) is specified are not cached. Since: Jakarta Persistence (JPA) 1 .0 ENABLE

jakarta.persistence.ParameterMode

Jakarta Persistence (JPA) Enum jakarta.persistence.ParameterMode java.lang. Object ∟ java.lang.Enum ... StoredProcedureParameter Since: Jakarta Persistence (JPA) 2. 1 Enum Constants IN Stored procedure input parameter Since: Jakarta Persistence (JPA) 1 .0 INOUT Stored procedure input/output parameter

jakarta.persistence.Persistence

Jakarta Persistence (JPA) Class jakarta.persistence.Persistence java.lang. Object ∟ jakarta ... both Jakarta EE and Java SE environments. Since: Jakarta Persistence (JPA) 1 .0 The JPA Connections ... signature tests. Since: Jakarta Persistence (JPA) 1 .0 Public Constructors Persistence () Default constructor

jakarta.persistence.QueryTimeoutException

Jakarta Persistence (JPA) Class jakarta.persistence.QueryTimeoutException java.lang. Object ∟ java ... 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

jakarta.persistence.FlushModeType

Jakarta Persistence (JPA) Enum jakarta.persistence.FlushModeType java.lang. Object ∟ java.lang.Enum ... within a transaction, if AUTO is set on the Query or TypedQuery object , or if the flush mode setting ... TypedQuery object , the persistence provider is responsible for ensuring that all updates to the state

JPA Tutorials

The following tutorials demonstrate how to develop database driven applications using JPA and the ObjectDB ODBMS ( Object Oriented Database Management System). Console JPA Tutorial The Quick Start ... , such as GlassFish 3.0. 1 or JBoss AS 6. Another tutorial shows how to use JPA in a Spring MVC Framework

Getting Started with JPA

. That is one of the benefits of ObjectDB, which is the only Object Database with built in support of JPA. The sample application is also explained in details in  Chapter 1 of the  ObjectDB Manual , but if you prefer