ObjectDB Database Search

51-100 of 200 results

javax.jdo.JDOUserException Failed to locate field field exampleField using reflection (error 363)

to locate field field com.example.db.BDO.testField using reflection (error 363)      ... (ConsoleLoggingServerLauncher.java:12) Caused by: com.objectdb.o._JdoUserException: Failed to locate field field com ... .objectdb.o._JdoUserException: Failed to locate field field com.example.db.BDO.testField using

DB Doctor sets type to "unknown" for new fields

Hi, we are using ObjectDB 2.5.4_04 on Linux. We added two new Boolean fields to a persistable type and run DB Doctor on the exiting DB file in order to update the schema. The fields are added ... DB file is what was produced by DB Doctor after adding the emergency and broadcast fields

PersistenceException: Failed to locate field

._PersistenceException: Failed to locate field in this case, adding a primitive String field to an Entity ... new field , shouldn't the policy be to add a null in that field , or other default for that primitive. Specifically, from: http://www.objectdb.com/java/jpa/entity/schema " Fields in the new schema

Strings in JPQL and Criteria Queries

String values can appear in JPQL queries in several forms: As string literals , for example, 'abc' and '' . As parameters when string values are passed as query arguments. As path expressions that navigate to persistent string fields . As the results of predefined JPQL string manipulation functions

Date and Time in JPQL and Criteria Queries

Date and time expressions can appear in JPQL queries in the following ways: As date and time literals --for example, {d '2011-12-31'} and {t '23:59:59'} . As parameters --when date and time values are passed as arguments. As path expressions --to navigate to persistent date and time fields . As

Logical Operators in JPQL and Criteria API

, a Boolean path (a field or property) is represented by Path : Path isInUN = country. get ("isInUN

JPA Metamodel Attributes

, wrappers, Strings), embedded objects, and associations (reference fields and properties

Numbers in JPQL and Criteria Queries

Numeric values can appear in JPQL queries in several forms: As numeric literals , such as 123 and -12.5 . As parameters that are bound to numeric arguments. As path expressions that navigate to persistent numeric fields . As aggregate expressions , such as COUNT . As collection functions

What are the main benefits of using ObjectDB?

fields can be stored by ObjectDB simply as part of the containing object. Relational databases lack

WHERE clause (JPQL / Criteria API)

is defined on the population field , ObjectDB can use that index to iterate directly over the Country objects

JPA Metamodel and Graphs

, mapped superclasses, and embeddables. Describes the hierarchy of attributes (persistent fields

Running JPA Queries

Country"). executeUpdate (); The following query resets the area field in all Country instances to zero

BIRT/ODA ObjectDB Driver

the Work with field , enter the ObjectDB update site URL: http://www.objectdb.com/eclipse and press Enter

JPA Relationships Annotations

Relationships define associations between entities. They are represented In Java code by attributes (persistent fields or properties) in persistent classes that hold a reference or a collection of references to other entities. Jakarta Persistence (JPA) provides annotations to configure

Updating JPA Entities

that are referenced by modified entities through fields that are marked with CascadeType . PERSIST or

JPA Criteria API Queries

. For example, building a dynamic query based on a form with many optional fields is cleaner

Chapter 1 - Quick Tour

is represented by an object with two int fields , x and y , that store the point's x and y

JPA Listeners & Callbacks Annotations

the persistence context or refreshed. This is useful for initializing transient fields or performing post

boolean field flips after schema update (in class) of another field

We have added a boolean field to a class with default value false. After deployment on several instances the values of other boolean fields in the same class (next to the new one) flip or change. This is a serious issue because the related fields were not touched (no change of name or

jakarta.persistence.Entity

. An entity class holds state, represented as persistent fields and properties: a field or property of basic type maps to a single column in one of the tables mapped by the entity, a field of property ... class must have at least one field or property annotated Id or EmbeddedId holding the primary key

jakarta.persistence.Version

: Annotation Target: Method, Field Declares the version field or property of an entity class ... field or property holds a version number or timestamp identifying the revision of the entity data ... .LocalDateTime . This field declares a version number: @Version @Column(name = "REVISION") protected

jakarta.persistence.IdClass

: Annotation Target: Type Specifies a composite primary key type whose fields or properties map to the identifier fields or properties of the annotated entity class. The specified primary key type ... fields of the entity must be annotated Id , and the specified primary key type must have fields or

jakarta.persistence.Convert

: Annotation Target: Method, Field , Type Specifies how the values of a field or property are converted ... defined autoApply=true , or overriding the use of a converter specified by a field or property ... field or property. The dot notation may also be used with map entries: When this annotation

jakarta.persistence.AttributeOverride

Interfaces: Annotation Target: Type, Method, Field Used to override the mapping of a Basic (whether explicit or default) property or field or Id property or field . May be applied to an entity that extends a mapped superclass or to an embedded field or property to override a basic mapping or id mapping

jakarta.persistence.OrderBy

: Annotation Target: Method, Field Specifies the ordering of the elements of a collection-valued ... [, orderby_item]* orderby_item ::= [property_or_ field _name] [ASC | DESC] If ASC or DESC is not specified, ASC ... , ordering by the primary key of the associated entity is assumed. The property or field name

jakarta.persistence.MappedSuperclass

mapped to a database table. The persistent fields and properties of a mapped superclass are declared ... is FTEMPLOYEE table @Entity public class FTEmployee extends Employee { // Inherited empId field mapped to FTEMPLOYEE.EMPID // Inherited version field mapped to FTEMPLOYEE.VERSION // Inherited address field

jakarta.persistence.Basic

: Annotation Target: Method, Field The simplest type of mapping of a persistent field or property ... of the Basic annotation is optional for persistent fields and properties of these types. If the Basic annotation is not specified for such a field or property, the default values of the Basic annotation

jakarta.persistence.AssociationOverride

Interfaces: Annotation Target: Type, Method, Field Used to override a mapping for an entity relationship ... embedded within another embeddable class), AssociationOverride is applied to the field or property ... an embeddable class, the name element specifies the referencing relationship field or property

jakarta.persistence.ManyToOne

: Annotation Target: Method, Field Specifies a single-valued association to another entity class ... the relationship field or property of the entity that is the owner of the relationship. A ManyToOne ... to specify the relationship field or property of the embeddable field or property on the owning

jakarta.persistence.Enumerated

: Annotation Target: Method, Field Specifies that a persistent property or field should be persisted as an enumerated type. This annotation is optional if the type of a persistent field or property ... the available options. The mapping may be explicitly specified by this annotation. If a persistent field or

jakarta.persistence.OneToOne

: Annotation Target: Method, Field Specifies a single-valued association to another entity class ... to specify the relationship field or property of the owning side. A OneToOne association usually ... the relationship field or property of the embeddable class. The dot ( . ) notation syntax must be used in

Once served to JSF page via @EJB query bean, many list fields are null (but same query ok after fresh persist in @PostConstruct)

, the inability to robustly query relationship fields in a web application renders the ObjectDB ... . For a number of different List fields , a query performed immediately after creating and persisting ... via a querying @EJB gives many fields null (and not even empty, I mean truly null). In

Problem using "and" for joined entities and indexed fields

Using @Index for fields and filter more than one field with "and" predicate ends in empty result ... ; but if you can't use these fields in logical expressions like "and" is a big problem.   Netzverb Andreas Göbel This indeed indicates a bug in using indexes on fields of embedded objects in

ObjectDB-2.6.9: Failed to commit transaction: Failed to set numeric value of field property Element.id using reflection

to set numeric value of field property com.greensoft.objectdb.test.entity.Element.id using reflection ... value of field property com.greensoft.objectdb.test.entity.Element.id using reflection (error 613 ... : com.objectdb.o.UserException: Failed to set numeric value of field property com.greensoft.objectdb

Step 2: Define a JPA Entity Class

should represent Point objects in the database. Apart from the @Entity annotation and the id field

Step 2: Define a JPA Entity Class

objects in the database. Besides the @Entity annotation and the id field (and its annotations

Getting Started with JPA and Eclipse

This is the Eclipse version of the Quick Start with JPA tutorial. It demonstrates how to create and run a simple JPA application in Eclipse. The demonstrated application uses JPA to store and retrieve simple Point entities, where each Point has two persistent fields : x and y

Step 7: Run the Spring Web App

; jetty:run in the Goals field and click Run . Open your browser at http://localhost:8080/Guestbook

Step 3: Define an EJB Session Bean

). Prepares an  EntityManager automatically and injects it into the  em field

Step 3: Define a Spring DAO Component

the  em field (because it is annotated with the  @PersistenceContext annotation). Handles

Step 2: Entity Class and Persistence Unit

{ private static final long serialVersionUID = 1L; // Persistent Fields : @Id @GeneratedValue Long id

Step 4: Add a Controller Class

is automatically constructed and injected by Spring into the guestDao field (because it is annotated

Step 5: Design a BIRT Report Chart

these fields for content assistant) and click Next . In the [Format Chart] tab you can set the chart title

Step 6: Design a BIRT Report Table

) in the third field and click OK . Fill the table with data by dragging the x and y columns from

Getting Started with JPA

This tutorial demonstrates how to create and run a simple JPA application. The demonstrated application uses JPA to store and retrieve simple  Point entities, where each  Point has two persistent fields -  x and  y . If you already know JPA - the source code will be straightforward

Step 3: Define a Spring DAO Component

the  em field (because it is annotated with the  @PersistenceContext annotation). Handles

Step 3: Define an EJB Session Bean

the next step ). Prepares an EntityManager automatically and injects it into the em field

Getting Started with JPA and NetBeans

This is the NetBeans version of the  Quick Start with JPA tutorial. It demonstrates how to create and run a simple JPA application in NetBeans. The demonstrated application uses JPA to store and retrieve simple  Point entities, where each  Point has two persistent fields - 

Step 7: Run the Spring Web App

; jetty:run in the Goals field and click  OK . Open your browser at http://localhost:8080

[ODB1] Chapter 1 - About ObjectDB

, you can forget relational databases, tables, records, fields , SQL, JDBC and drivers, and focus your attention