ObjectDB Database Search
101-150 of 200 resultsUPDATE 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 | |
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;   | |
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 | |
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 | |
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 |