ObjectDB Database Search

151-200 of 200 results

is JDO field attribute "indexed" supported?

. But there is another way which is to specify an indexed attribute on the field element, like or indexed="true". It doesn't seem to be mentioned on the JDO annotations for fields documentation. Could you confirm

Failed to read the value of field using reflection

I have recently encountered an issue with reading objects: Exception: com.objectdb.o.UserException Message: Failed to read the value of field field Character.stats using reflection Stack Trace: com.objectdb.o.MSG.d(MSG.java:75) com.objectdb.o.UMR.P(UMR.java:934) com.objectdb.o.UMR.B(UMR.java:609

Possible issue with String fields

When I comment out the fields that are strings all works out fine. I tried replacing the jdbc field

Does adding normal fields to a table require a restart of the DB?

I have a table that needs a new non-indexed field .  My DB is in client/server mode.  Do I need to restart the DB?     Trianglehead Json Error Yes. See the note on this manual page . support Support

Problem with merging / persisitng objects with @Embeddable field

Hi, After migration to version 2.4.2_01, I have noticed a strange problem with persisting object with field that contains @Embeddable object. Please check attached exception. Relation between entities looks like this: @Entity public class ProductKit extends BaseEntity implements

removed objects stay with null field values in the reference

that is in this relationship (workflow), the object stays in the relationship with all fields set

Memory error during commit, if @ElementCollection field contains many elements

although the element collection is actually not load because it is a lazy field . Why we run into

Create simple index for a Id field

Hello, I just wanted to write another anotation to my key field so I can have a really simple index. This is the original code: @Entity public class ObjectDbEntity implements DataItemProvider {         @Id     private Key key = null;    

Field not persisted in abstract class with two level of nesting

Hi, I have a field (embedded TZ1) which is not persisted in class MHD1 (TZ1  extends AS and AS extends ATT). But it seems to work fine when I skip the AS and make TZ2 extend directly from ATT. Here is an example code MHD1 package BUG2; import java.io.Serializable; import javax

auto-generated uuid fields

auto-generated uuid fields

Global way to set Lazy-loading fetch functionality for all the fields

Global way to set Lazy-loading fetch functionality for all the fields

select query for a HashMap field of an entity.

select query for a HashMap field of an entity.

auto-generated uuid fields

auto-generated uuid fields

How to pass a list in query for a list field of entity.

How to pass a list in query for a list field of entity.

Failed to read the value of field using reflection (error 363)

Failed to read the value of field using reflection (error 363)

java.lang.NullPointerException during access a field, only if the classes enhanced

We get the following exception during access a field (Set of entities) The error occurs only if the entities are enhanced.   Caused by: com.objectdb.o.InternalException: Unexpected internal exception at com.objectdb.o.JPE.h(JPE.java:168) at com.objectdb.o.ERR.f(ERR.java:66) at com.objectdb.o

ObjectDb Doctor : Failed to locate set method for field property com.test.Video$VideoId.sourceId using reflection (error 316)

Hello everyone ! I have just launched the ObjectDb Doctor for testing purposes. But while inspecting my base, the Doctor throws me a strange error : [ObjectDB 2.4.6] Invalid ID class com.test.Video$VideoId for type com.test.Video (Failed to locate set method for field property com.test.Video

NullPointer when accessing entity field

) It is very strange that the problem occurs when accessing field of enhanced class but not during reading

NullPointer when accessing persistent field

NullPointer when accessing persistent field

auto-generated uuid fields

auto-generated uuid fields

Exception on comparing array fields against parameters in queries

Exception on comparing array fields against parameters in queries

Super class' field access fails

Super class' field access fails

jakarta.persistence.JoinColumn

: Annotation Target: Method, Field Specifies a column for joining an entity association or element ... is used): The concatenation of the following: the name of the referencing relationship property or field ... . If there is no such referencing relationship property or field in the entity, or if the join

jakarta.persistence.MapKey

: Annotation Target: Method, Field Specifies the map key for associations of type java.util.Map when the map key is itself the primary key or a persistent field or property of the entity that is the value of the map. If a persistent field or property other than the primary key is used as a map key

jakarta.persistence.EnumeratedValue

Interfaces: Annotation Target: Field Specifies that an annotated field of a Java enum type is the source of database column values for an enumerated mapping. The annotated field must be declared final ... . The annotated field must not be null, and must hold a distinct value for each value of the enum type

jakarta.persistence.OneToMany

: Annotation Target: Method, Field Specifies a many-valued association with one-to-many multiplicity ... is bidirectional, the mappedBy element must be used to specify the relationship field or property ... field or property of the entity that is the owner of the relationship. When the collection is a java

jakarta.persistence.Id

Jakarta Persistence (JPA) Annotation Type jakarta.persistence.Id Implemented Interfaces: Annotation Target: Method, Field Identifies the primary key of an entity. The field or property ... is assumed to be the name of the primary key property or field . Example: @Id public Long getId

jakarta.persistence.Lob

Jakarta Persistence (JPA) Annotation Type jakarta.persistence.Lob Implemented Interfaces: Annotation Target: Method, Field Specifies that the annotated persistent property or field ... ) is inferred from the type of the persistent field or property. For string and character-based types

jakarta.persistence.MapKeyColumn

: Annotation Target: Method, Field Specifies the mapping for the key column of a map whose map key ... of the following: the name of the referencing relationship field or property; " _ "; " KEY ". Example: @Entity ... relationship field or property; " _ "; " KEY ". Default: "" Since: Jakarta Persistence (JPA) 1.0 boolean

jakarta.persistence.MapKeyJoinColumn

Interfaces: Annotation Target: Method, Field Specifies a mapping to an entity that is a map key. The map ... of the referencing relationship property or field of the referencing entity or embeddable class ... annotation at the table level and is useful for when the unique key constraint is only a single field

jakarta.persistence.FieldResult

the SELECT list of a SQL query to the properties or fields of an entity class. Example: Query q = em ... .Order.class, fields = { @FieldResult(name = "id", column = "order_id"), @FieldResult(name = "quantity ... Name of the persistent field or property of the class. Since: Jakarta Persistence (JPA) 1.0 String

jakarta.persistence.Transient

Jakarta Persistence (JPA) Annotation Type jakarta.persistence.Transient Implemented Interfaces: Annotation Target: Method, Field Specifies that the annotated property or field is not persistent. May annotate a property or field of an entity class, mapped superclass, or embeddable class. Example

jakarta.persistence.AttributeOverrides

Interfaces: Annotation Target: Type, Method, Field Used to override mappings of multiple properties or fields . Example: @Embedded @AttributeOverrides({ @AttributeOverride(name = "startDate", column ... Persistence (JPA) 1.0 Annotation Elements AttributeOverride[] value (Required) One or more field or

jakarta.persistence.AttributeConverter

as the type of a persistent field or property, and a basic type used as an intermediate step in mapping to the database representation. A converted field or property is considered Basic ... descriptor. The value of autoApply determines if the converter is automatically applied to persistent fields

jakarta.persistence.AssociationOverrides

Interfaces: Annotation Target: Type, Method, Field Used to override mappings of multiple relationship properties or fields . Example: @MappedSuperclass public class Employee { @Id protected Integer id ... ) The association override mappings that are to be applied to the relationship field or property

jakarta.persistence.Column

: Annotation Target: Method, Field Specifies the column mapped by the annotated persistent property or field . If no Column annotation is explicitly specified, the default values apply. Example 1: @Column ... (Optional) The name of the column. Defaults to the property or field name. Default: "" Since: Jakarta

jakarta.persistence.Temporal

Jakarta Persistence (JPA) Annotation Type jakarta.persistence.Temporal Implemented Interfaces: Annotation Target: Method, Field This annotation must be specified for persistent fields or properties of type java.util.Date and java.util.Calendar . It may only be specified for fields or properties

jakarta.persistence.Persistence

and Transactions article explains how to use Persistence . Public Static Fields PERSISTENCE_PROVIDER ... compatibility Deprecated: TODO: Either change TCK reference to PERSISTENCE_PROVIDER field to expect "jakarta.persistence.spi.PersistenceProvider" or remove PERSISTENCE_PROVIDER field and also update TCK

jakarta.persistence.criteria.CriteriaBuilder.extract(TemporalField,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: expression for the value of the extracted field . Since: Jakarta Persistence (JPA) 3.2

jakarta.persistence.Convert.attributeName

") , then the converter is applied to the field or property named startDate of the annotated entity class, if an embedded field is annotated @Convert(attributeName = "startDate") , then the converter is applied to the field or property named startDate of the referenced embeddable class, or if an map collection whose key

jakarta.persistence.GeneratedValue

Jakarta Persistence (JPA) Annotation Type jakarta.persistence.GeneratedValue Implemented Interfaces: Annotation Target: Method, Field Specifies a generation strategy for generated primary keys. The GeneratedValue annotation may be applied to a primary key property or field of an entity or mapped

jakarta.persistence.JoinTable

Jakarta Persistence (JPA) Annotation Type jakarta.persistence.JoinTable Implemented Interfaces: Annotation Target: Method, Field Specifies the mapping of an association to an intermediate join table ... ", referencedColumnName = "ID")) This annotation may not be applied to a persistent field or property not annotated

jakarta.persistence.InheritanceType

, with only the columns mapped to persistent fields and properties declared by the entity class. Each ... to inherited fields or properties, and so the state of an entity instance might be stored across multiple table

jakarta.persistence.Embedded

Jakarta Persistence (JPA) Annotation Type jakarta.persistence.Embedded Implemented Interfaces: Annotation Target: Method, Field Declares a persistent field or property of an entity whose value is an instance of an embeddable class. The embeddable class must be annotated as Embeddable

jakarta.persistence.ElementCollection

Jakarta Persistence (JPA) Annotation Type jakarta.persistence.ElementCollection Implemented Interfaces: Annotation Target: Method, Field Declares a collection of instances of a basic type or ... of the collection. This element is optional only if the collection field or property is defined using Java

jakarta.persistence.EntityResult

[] fields Maps the columns specified in the SELECT list of the query to the properties or fields

jakarta.persistence.criteria.LocalDateField

value Implemented Interfaces: TemporalField Each instance represents a type of field which can be extracted from a LocalDate . Since: Jakarta Persistence (JPA) 3.2 Public Static Fields DAY The calendar

jakarta.persistence.criteria.LocalTimeField

value Implemented Interfaces: TemporalField Each instance represents a type of field which can be extracted from a LocalTime . Since: Jakarta Persistence (JPA) 3.2 Public Static Fields HOUR The hour

jakarta.persistence.criteria.LocalDateTimeField

of the extracted value Implemented Interfaces: TemporalField Each instance represents a type of field which can be extracted from a LocalDateTime . Since: Jakarta Persistence (JPA) 3.2 Public Static Fields DATE

jakarta.persistence.Access

Jakarta Persistence (JPA) Annotation Type jakarta.persistence.Access Implemented Interfaces: Annotation Target: Type, Method, Field Used to specify an access type to be applied to an entity class ... Persistence (JPA) 2.0 Annotation Elements AccessType value (Required) Specification of field - or