ObjectDB Database Search

51-100 of 200 results

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

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

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

Wrong data stored in time only fields

only fields . The object and its date and time fields are the same as in the referenced thread ... are using the 2015g time zone data. While we cannot see a problem with date only fields (more testing pending) now it appears that there is a problem with time only fields . The issue appears at random

Field level privileges

addons and privileges on access some of the fields on java side.   Can we give privileges to users , for example some users can only read some fields and some just can write java fields . Some users only allowed insert ability. Anonymous access only accesses some of the fields . kadirbasol Kadir

Query over the keySet of a map field with collection parameter

It is possible to execute a query over a keySet of a map field with comparing to a collection ... EmbeddedSystems Using map values in queries is easier. Therefore, if the keys of the map field of EntityParent, i.e. public Map map = new HashMap (); are also available in the map value, e.g. the field

How do handle fields with java.net.URI class

fields like this: URI id; Set ids; These fields are very important for querying and we need an index ... than with unindexed String fields . Therefore, maintaining separate String fields , as you suggested, seems to be the current best solution. support Support

Use of sequences to generate field values in JDO

I'm trying to use sequences to set field values in JDO.  I want to do this in XML metadata ... get the message:  No definition of generator 'audit_seq' (referenced by field com.spiffymap.sealog.model.Audit.id) (error 341) Can you describe how I should be using sequences to provide field values?  

Annotate a Map field with @ElementCollection or @Basic

Hello, we have an entity with a field whose type is a Map. Once we annotate the field with @ElementCollection, in the other case with @Basic. Is @Basic also a valid annotation for a Map field ... BTC btc_es BTC EmbeddedSystems Is @Basic also a valid annotation for a Map field ? It is valid in

Fields in objects not populated in query result.

.getResultList(); none of the Folder objects has its fields populated. Running the same query from ... A possible reason could be a partial enhancement. ObjectDB can populate fields in both enhancement mode ... fields in the debugger before they are  accessed. support Support A bit more context

Failed to write the value of field using reflection (error 363) on LAZY fetch

the value of field field ch.megloff.zeus.model.Modell.articles using reflection (error 363) at ch.megloff ... (ZeusImport.java:45) Caused by: com.objectdb.o.UserException: Failed to write the value of field field ch

Double persist of Entity field with Cascade.ALL

I am building a JavaEE application using Netbeans 7.0.1, Glassfish 3.1 and ObjectDB 2.3.3. I have a Book class with entity field Chapter which has a CascadeType.ALL property. The Book fields are as ... fields are as follows: @Id @GeneratedValue(strategy = GenerationType.AUTO) private Long id; private

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

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 ... . This field declares a version number: @Version @Column(name = "REVISION") protected int version

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 ... equality consistently with equality of the mapped primary key of the database table. The primary key fields

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 ... of each identifier used with the dot notation is the name of the respective embedded field or property

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.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 ... 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 apply

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

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

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

Logical "or" works not correcly when field is @Id and first position

only, if the field for the "or" is the first one defined as @Id. public class OrTest {      ... it seems, whenever an indexed field (means b-tree can used) is inside an or condition, the query optimizer using ... with the example code above, this query also returns only the object matches the b-tree ( field

UPDATE query cannot 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

jakarta.persistence.ManyToMany

: Annotation Target: Method, Field Specifies a many-valued association with many-to-many multiplicity ... the relationship field or property of the owning side. The join table for the relationship, if not defaulted ... the mappedBy element of the ManyToMany annotation to specify the relationship field or property

jakarta.persistence.Embeddable

of multiple persistent fields or properties, across several entities, and so distinct instances ... in the table or tables mapped by the owning entity. The persistent fields and properties ... its owning entity to another entity. However, an embeddable class may not have a field or property

jakarta.persistence.EmbeddedId

: Annotation Target: Method, Field Specifies that the annotated persistent field or property ... field or property must be an embeddable type, and must be explicitly annotated Embeddable . If a field or property of an entity class is annotated EmbeddedId , then no other field or property

jakarta.persistence.EnumType

how a persistent property or field whose type is a Java enum type should be persisted. See Also: Enumerated ... how to use EnumType . Enum Constants ORDINAL Persist enumerated type property or field as an integer. The ordinal value of an enum instance with no EnumeratedValue field is the value of its Enum.java.lang.Enum

jakarta.persistence.criteria.CriteriaBuilder

: exponential. Since: Jakarta Persistence (JPA) 1.0 Expression extract ( TemporalField field , Expression temporal ) Create an expression that returns the value of a field extracted from a date, time, or datetime. Parameters: field - a temporal field type temporal - a date, time, or datetime Returns

jakarta.persistence.CollectionTable

Interfaces: Annotation Target: Method, Field Specifies the table that is used for the mapping of collections of basic or embeddable types. Applied to the collection-valued field or property. By default ... of the collection-valued field or property. In the case of an embeddable class, the column names are derived

Mapped by fields are not initialized by JOIN FETCH in queries

As demonstrated in this forum thread , a mapped by collection field with lazy fetch mode is not initialized in results of a query that uses JOIN FETCH on that collection field (when enhancement is used). support Support   Build 2.4.1_06 fixes this issue ( fields are now initialized

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