Internal Website Search

101-150 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

LAZY @ManyToOne field functions as EAGER

to console a lazy @ManyToOne field after the entity manager closes. There is a switch DO_VIEW_BEFORE_CLOSE, and when it is true the fields are accessed and output before the finding entity manager closes and as expected both a LAZY @ManyToOne field and an EAGER @ManyToOne field are viewable: b

Unexpected internal exception during set field of an Embeddable to null

The  ArrayIndexOutOfBoundsException is thrown on an attempt to access a 4th field ([3]) in the array of persistent fields of the  SignalValueImpl embedded class, which unexpectedly happens to be smaller. During enhancement of the  SignalValueImpl class field originalValue was the 4th

Problem persisting a TreeSet field

Hello, I am getting a "java.lang.IllegalArgumentException: Can not set java.util.TreeSet field ...   lorenz2304 Benjamin Lorenz Your definition of field children is invalid in JPA - Only collection interface types ( Collection , Set , List , Map ) should be used in persistent field definition

Class fields selection to store

In a class how do I define which are the fields to be stored? (using JDO API) It's using persistence-modifier="persistent" ? If I have a class with 40 fields and I only want to store one of the fields should I do the following? Which are the value used for fields that I do not want to store

Should derived fields of an EmbeddedId be manually maintained by app code?

@EmbeddedId, am I responsible for maintaining the derived fields of the @EmbeddedId? I could not find ... , contains a field , "cont", that is derived from ECompoundKeyMapItem's container field via the @MapsId ... "ECompoundKeyMapSubItemId" class, which contains a field "prnt" which is derived from ECompoundKeyMapSubItem's

Failed to read the value of field ... using reflection

; Caused by: com.objectdb.o.UserException: Failed to read the value of field field com.btc.ep ... .IllegalArgumentException: Can not set [Lcom.btc.ep.expression.formula.bl.dmos.VariableSetting; field ... .reflect. Field .set( Field .java:764) at com.objectdb.o.UMR$b.D(UMR.java:1084) at com.objectdb.o.UMR$a.x

final fields persistence

, and auto generated using https://immutables.github.io/ -- which creates final fields ... fields , though JDO might. And, Hibernate supports final fields (though most other JPA providers do not.) Thoughts? gsaxena888 Gautam Saxena Final fields are transient in JPA/JDO by default

UPDATE query to set a new field after schema change

I've added a new property/ field to one of my objects and want to set the value of this (boolean ... the changes to the DB via file-save. But when I execute a select on the DB I see that the field is still "null" for all instances. How do I initialize the field ? KFlash Kevin You are right. Currently

Schema update: package, class and field

of moving a class and rename a field of the class doesn't works.   I had extended a example in which i already rename a field . Only rename the field   [example works]   ... ' fields are 'null' btc_es BTC EmbeddedSystems Thank you for this report. Please try build 2.6.3_02

WebService : Failed to get reference value of field using enhanced method

.apache.axis2.AxisFault: Failed to commit transaction: Failed to get reference value of field field ... of field field de.tud.stg.emergent.policy.persistence.PolicyEntity.policyString using enhanced method ... to get reference value of field using enhanced method" . ClassCast error was only once by me... --- I

Error: Failed to write value of field X using reflection (oneToMany relation)

() I get an exception: com.objectdb.o._PersistenceException: Failed to write the value of field field ... on the first run. But after that I recieve the "Failed to write the value of field field testodb2 ... You have to change the value of the mappedBy attribute: @OneToMany(mappedBy="cliente") i.e. specify the field

Logical Operators in JPQL and Criteria API

, a boolean path (a field or a property) is represented by Path : Path isInUN = country

JPA Metamodel API Attributes

The following interfaces and enum types represent attributes (persistent fields and properties) in the JPA Metamodel API: See the Metamodel Attribute Interface Hierarchy section for more details and examples.

Numbers in JPQL and Criteria Queries

Numeric values may appear in JPQL queries in many forms: as  numeric literals - e.g. 123 , -12.5 . as parameters - when numeric values are assigned as arguments. as  path expressions - in navigation to persistent numeric fields . as aggregate expressions - e.g. COUNT. as collection

JPA Queries

that is known only at runtime (e.g. depending on which fields are filled by a user in a form

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)

the above population query, if an index is defined on the population field ObjectDB can use

Running JPA Queries

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

BIRT/ODA ObjectDB Driver

... In the [Work with] field enter the ObjectDB update site URL: http://www.objectdb.com/eclipse

JPA Annotations for Relationships

Relationships are persistent fields in persistable classes that reference other entity objects. The four relationship modes are represented by the following annotations: Unlike ORM JPA implementations, ObjectDB does not enforce specifying any of the annotations above. Specifying a relationship

JPA Annotations

JPA defines dozens of annotations that can be divided into the following groups: Annotations for JPA aware classes: Annotations for fields in JPA persistable classes: Annotations for additional JPA configuration: Annotations for JPA lifecycle event callbacks: Java EE container annotations: Many

Updating JPA Entity Objects

by fields that are marked with CascadeType . PERSIST or CascadeType . ALL are also persisted

Chapter 1 - Quick Tour

that contains points in the plane. Each point is represented by an object with two int fields , x and y

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

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

InternalException - error reading field from "queue" database

Source) ... 4 more Caused by: com.objectdb.o._PersistenceException: Failed to read the value of field field rbccm.felix.objectdb.messaging.ObjectDbMessage._payload using reflection at com.objectdb.o ... : com.objectdb.o.UserException: Failed to read the value of field field rbccm.felix.objectdb.messaging

com.objectdb.o._PersistenceException: Failed to locate set method for field property using reflection

._PersistenceException: Failed to locate set method for field property domain.PlatformTicker.platformConnector using ... can open the database and browse the data. It seems odd that the error message should complain about field ... the property based accessor for the field being complained about. Any ideas would be greatly

Entity field renaming does not work

Hello, we use the ObjectDB version 2.8.5_05. We want to rename a field in an entity and it does ... (AccessType. FIELD ) public class ToleranceDeviationImpl {     @Basic     ... that supporting field renaming is very sensitive. There is nothing wrong with your code or configuration as posted

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 entity objects, 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

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

Step 3: Define a Spring DAO Component

it into the  em field (because it is annotated with the  @PersistenceContext annotation

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 entity objects, where each  Point has two persistent fields -  x and  y . If you already know JPA - the source code

Step 3: Define a Spring DAO Component

it into the  em field (because it is annotated with the  @PersistenceContext annotation

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 entity objects, 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

javax.jdo.PersistenceManager

the specified instance from the PersistenceManager . The flags for detachment (DETACH_LOAD_ FIELDS and DETACH_UNLOAD_ FIELDS ) and the active fetch groups determine the scope of fetching for the graph of instances reachable from the pc parameter. The state of fields in the affected instances is as

javax.jdo.spi.PersistenceCapable

Public Methods void jdoCopyFields (Object other, int[] fieldNumbers) Copy field values ... : other - the PC instance from which field values are to be copied fieldNumbers - the field numbers to be copied ... .ObjectIdFieldConsumer fm, Object oid) Copy fields to an outside consumer from the key fields in

javax.jdo.spi.JDOImplHelper

 fm, Object oid) Copy fields to an outside source from the key fields in the ObjectId. This method is generated in the PersistenceCapable class to generate a call to the field manager for each key field in the ObjectId. For example, an ObjectId class that has three key fields ( int id