ObjectDB Database Search

101-150 of 200 results

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

multi thread application, id field sporadically null

with the field that is declared as @Id having the value null (what is not correct, we checked ... we have this behavior exactly this object has always this value for the field even if we query ... how exactly you create, persist and retrieve the objects. Except the id field , are other fields

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

Date 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

Field in Generic Class not persisted?

Hi, I am trying to persist a class which is extended from an generic class - but fields declared inside the generic class are not persisted - is that expected? I assume it can be done b/c this field ... to persist its fields . support Support You are right - it was a bad attempt from

Unable to persist fields in subclass

I have a superclass Person, with several fields I have a subclass Patient with additional fields . I can persist Patient, but CANNOT persist the fields in this subclass. Why is this? example code: package miscTests; import javafx.beans.property.SimpleStringProperty; import javafx.beans.property

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

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)

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

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

AnnotationRef jakarta.persistence.Entity

fields and properties: a field or property of plain maps to a single plain in one of the tables mapped by the entity, a field of property of plain has nested mappings to multiple columns in ... must have at least one field or property annotated Id or EmbeddedId holding the primary key of the entity. An entity class

AnnotationRef jakarta.persistence.OrderBy

JPA Annotation OrderBy Target: METHOD, FIELD Implemented Interfaces: Annotation Specifies ... , as follows: orderby_list ::= orderby_item [, orderby_item] orderby_item ::= [property_or_ field ... entity is assumed. The property or field name must correspond to that of a persistent property or field