ObjectDB Database Search
101-150 of 200 resultsDate field Index is corrupted due to time change the bug, which affects indexes on pure Date fields (i.e. date with no time). ObjectDB converts pure ... move during commit different values can be obtained for the same field . Hopefully a new build that fixes ... fields will cause the corruption? An example would be beneficial. Also, can we assume that all version | |
Property fields Hello How can I use a Property, such as: javafx.beans.property.BooleanProperty as a field ... ; Thanks Russ russ0ne Russell Martin You can use a simple boolean or Boolean persistent field in ... type property (i.e. the underlying persistent field of a BooleanProperty could be java.lang.Boolean ). support Support | |
EmbeddedId with Generated field value both solutions I expected I could get a generated value for the field uid by simply adding the documented ... to fill all my classes with redundant fields and their relative getters and setters. But at this point has ZoneId class (or CompositePK class) to be declared as @Embeddable static class with annotated fields ? I | |
does ObjectDB / JPA support simple password field encryption of an entity class?;Is there any direct ObjectDB support to just encrypt the password field ? We would like to either encrypt or ... have one or two passwords field of an entity to protect. Appreciate any suggestions, Thanks. shkraju ... ;to encrypt the fields before persisting and decrypt them after load. support Support | |
Cascading persistence through an inverse field fields , and I noticed that I can only get cascading persistence in one direction. If the "owner ... persisted! Is this a limitation due to the fact that the reverse field is only recalculated ... this? Would it perhaps be better to just maintain a regular link on both sides instead of using an inverse field ? Thank | |
JPA inheritance issue with ObjectDB - Field not found in type error; // other fields , getters, and setters } @Entity @Inheritance public class PharmaceuticalItem extends Item ... this query, I get the following error: Error executing query: Field 'retired' is not found in type 'com | |
Multiple Collection Fields not update correctly v2.8.8_2 I have an entity that has 2 collection fields : @OneToMany(fetch = FetchType.EAGER) Collection position; @OneToMany(fetch = FetchType.EAGER ... can only have 1 field that is a Collection . position has values 8.0f, 8.0, 8.0 rotation has values 8.0f | |
java.sql.Time field off by 30 minutes Hihi, I'm wondering if this is a bug. I have a simple entity with java.sql.Time field . On writing and readback, the field is found to be 30 minutes off. It is observed on objectdb explorer as well. Timestamp works perfectly fine. Ps. dont think its a UTC issue. My system is set at far off UTC | |
Why can't we persist an object with a field of type EnumMap in ObjectDB? Hi, Is there a reason why we can't persist an object with a field of type EnumMap in ObjectDB? but it works fine for fields like = HashMap Thanks EKK EKK Emmanuel Keskes You can persist any Serializable type if you enable this ability in the configuration. But using this feature is not recommended | |
Indexing a field results in internal Exception I have an application that I have been converting from JPA/MySQL to JDO/ObjectDB and I have hit a problem with indexing. An index on a String field is required to give good performance but if I add the @Index annotation to the field I eventually end up with an ObjectDB internal exception.   | |
Using Enum type in NamedQuery: Field is not found in type; @Enumerated public Type getType() { return type; } I then try to query this field ... .UserException: Field 'Type' is not found in type 'com.my.fully.qualified.name.Obj' I have noticed | |
How to apply Unique constraints on embedded fields? How to apply Unique constraints on embedded fields ? @Entity public class A { private B b; } @Embeddable public class B { private C c; } @Embeddable public class C { private HashSet values; }   ... you model, including possibly duplicating data, in order to have the value that you need to be unique available in one indexable field . support Support | |
Field or Table Encryption Is there a build-in way to encrypt object fields or entire "tables" with annotations? If not, are there any recommended design patterns? Thanks mrbahr2003 Thomas Gregory Please see this feature request in the issue tracking. If you need selective encryption of types / fields - please describe your suggestion in that issue thread. support Support | |
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 | |
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;   | |
auto-generated uuid fieldsauto-generated uuid fields | |
Global way to set Lazy-loading fetch functionality for all the fieldsGlobal 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 fieldsauto-generated uuid fields | |
Enum fields are set to null and embeddable enum class does not show in explorer I switched to version 2.8.2 and now it seems that my enum types are not recognized and the field ... ), however, when I open the database in the explorer the field "entities" holds one value which  ... the tree view it looks good in the list view it still shows null. However, if I click on null it opens and shows the fields of the type. itsme Martin Petzold | |
InternalException when querying indexed field using a list that contains duplicates filter like this is used: ":ids.contains(originalId)" originalId is an indexed String field on the candidate class :ids is a list which contains a duplicate entry If the field is unindexed, or :ids does | |
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 fieldNullPointer when accessing persistent field | |
auto-generated uuid fieldsauto-generated uuid fields | |
Exception on comparing array fields against parameters in queriesException on comparing array fields against parameters in queries | |
Super class' field access failsSuper 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.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.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 |