ObjectDB Database Search
51-100 of 200 resultsDB 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 | |
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 | |
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 | |
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 | |
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 | |
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.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.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 | |
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 | |
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 | |
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 |