ObjectDB Database Search

101-150 of 200 results

Soft Reference Object Cache Recommendation

object, via setData(), strongly references byte[] via "data" field , so ignore softReferenceData ... that are not freed.  They are of type "PAG" with a field name of "e", which I imagine ... references.  I see the expected SoftReference to my object, but their is an "i" field of type

TemporalType injection with Calendar using JPA

an embedded object as a primary key, which has time fields which I have annotated with TemporalType.TIMESTAMP When I use a java.util.Date as a field on this object there is no problem. However, if I ... it clearly states that java.util.Calendar is a persistable type for a field in a Embeddable class

List of Enum Values in an entity

. If the entity is enhanced, you may see a  null value in the debugger before accessing the field , but when the field is accessed it is expected to be loaded automatically by ObjectDB (unless ... only fields that have been loaded before detachment (e.g. defined as eager rather than lazy, or

Schema evolution & renamed/moved enum

schema evolution is currently not supported. If you have to update a field type into a non convertible type, you can add a new field (with a different field name) with the new type and on PostLoad convert the old field value to the new one. support Support Thanks, I guess I need to persist

Performance issue in a query due to compareTo calls

(AccessType. FIELD ) public class TCStep extends Identifiable { @Index private long stepNumber; @Basic ... @Access (AccessType. FIELD ) public class Values extends Identifiable { @Index private long stepNumber ... performance. support Support But what is needed to define an index on the field 'step'? @Entity @Access

Changes in detach behaviour?

out that all fields of retrieved objects are on their default value till i first call a getter or detach ... . Shouldn't the detach and field population happen implicitly during em.close()? mosi0815 Ralph Moser ... close will be available after close . I would expect, however, to see at least simple fields loaded

Standalone server needs dependencies?

.PersistenceException Failed to locate set method for field property com.xxx.aaa.model.ActionMessage ... for field property com.xxx.aaa.model.ActionMessage.trackerType using reflection at com.objectdb.o.MSG ... when the entity classes are not added to the server? What can you tell about the field :  ActionMessage

Modifying something with Explorer -> app JPQL with Enum doesn't work anymore

are found with field type GOOD. There are 2 ways generate the bug: Immediately after a new number ... with field "type" GOOD found by the the NamedQuery does not correspond with the actual data present ... when I edit an enum(String) field , but when I edit anything of that entity. It doesn't matter

Problem with @UniqueConstraint

columns rather than Java class fields . Therefore, it is silently ignored by ObjectDB, as specified ... field simply @Unique on the field . support Support Thanks for the quick reply! pezi Peter Sauer

ORDER BY problem, when String starts with language specific character

to add a persistent normalizedName field to the entity class and maybe even an index on that field ... fields - name and normalizedName , and just keeping strings in name using the decomposed form

Missing Data on Retrieval (0, null values)

by reflection (and not by invoking property methods or accessing the fields directly ... . This could be done, for example, by accessing a persistent field directly (with no reflection) from ... object ( obj ) before accessing its fields with reflection: if (!Persistence.getPersistenceUtil

Upgrade to 2.4.1_03

is: [ObjectDB 2.4.1_03] javax.persistence.PersistenceException Failed to clear field property com ... (RemoteTestRunner.java:197) Caused by: com.objectdb.o.UserException: Failed to clear field property com.contextspace ... . In this specific test case clearing the domain field to null conflicts with your checks. To solve

selecting objects that have a particular key/value in persistant HashMap

called 'pMap' as a persistable field .  I am able to create Person objects and persist them as expected. However, am I able to search the HashMap field using JPA?  For example, lets assume that the pMap field of some Person objects has the key/value pair "location'/'California'.  Can I

Handling deleted references

a profile I run a DELETE query on the old profile , hoping that this would lead to the field "profile ... Deleting a Profile entity object and setting the profile field in User  (to null or any ... instances that use a Profile as a field in Profile and then update the users when a Profile is deleted

Conditional Selection

. Use a report query that returns  firstName , middleName and lastName as separate fields ... an additional field . e.g. displayName . Use a method in the SELECT clause. It could be a static method ... . I've chosen to use the additional field option as it should only contribute an extra 20 - 24 bytes

How to avoid NULL values on Embedded entities

Hi there. I'm new on this. trying to learn. I'm trying to make a value non nulleable. So, when I try to upload to the DB this field as null, it give me an error. I tried this, but it didn't work ... , but it doesn't work inside Direccion fields . Sorry if my english is not perfecto, just ask if i'm not

Embedded List

to get records that have part of the strSupPart field from the Embedded class in the ItemDB class, my code looks ... ;format (i.e. minimal classes, minimum fields , minimum functions, etc.). Unfortunately we cannot investigate code that is not minimal. support Support

ObjectDB throws `NullPointerException` in internal code (`com.objectdb.o.ENH.b`)

 moving and renaming classes and fields . Based on the bug report, it appears that a field

Custom collection types

eg Vector, ArrayList, HashSet and all works fine, moreover Db-exploler does not show fields ... implementation of Map collection? br Tomasz Tomasz Tomasz Tomasz Wozniak If a persistent field type

Low performance when getting grove roots

all objects on the DB to test their parent field value. Id there a way to force ObjectDB to create an index for this field ? Regards, Vladimir tsichevski Vladimir Tsichevski Of course. Setting indexes

Optimistic locking: prevent version increment on entity collection attribute

Hello, I have an entity E with an attribute which is a collection of entities (one to many relationship) with an optimistic locking strategy supported by a version field . Is it possible to prevent ... of the readings field must be List rather than ArrayList . This is a JPA request, which is also mentioned in

Objectdb Doctor

Hi, I have deleted an instance of ClassA . However, if I try to access ClassB , which has a field of type ClassA , ClassB.classA , then, rather than getting a null pointer for classB.classA , I ... to them from other objects in the database (except references in inverse / mapped by fields

@Column length is not working.

. For other constraints, such as non null and length - consider checking relevant fields in ... for check the length of a field . Is there any other way?  Deepak_1996 Deepak Kumar Maharana

Immediately retrieve unique id

= GenerationType.SEQUENCE, generator = "sampleSeqGenerator") @Id long id;   The id field is as expected when I browse the database: 1,2,3,4 etc. I would like the field sampleName to be: SPL1, SPL2, SPL3

Multi threading on DMOs by lazy loading

It is possible to use lazy loading on fields of attached entities by several threads? Example: class EntityZ { @OneToOne(fetch = FetchType.LAZY) EntityX fieldX; @OneToOne(fetch = FetchType.LAZY ... . Does the multi threading access on different fields work correctly?   btc_es BTC EmbeddedSystems

Mismatch client-server protocol prefix

? We are persisting a new instance of LoginEvent. The Id field is not explicitly set and the field

ManyToMany Set is null

Why can the field "contracts" be "null"? ---------- @Entity @Inheritance(strategy = InheritanceType. TABLE_PER_CLASS ) public class Person implements Serializable,Subject {     @Id ... version of the Person class, in which the contracts fields was not initialized). More information

Extended mapping-definitions

proper indexes. You can also use composite indexes that consist of the className field with other fields in order to retrieve required data efficiently. Another idea, you can still use different entity

Update Entity references if we change the type of an entity

, because it's possible that many other entities have just a ID based reference with a simple 'int' field ... . The ObjectDB explorer still show as Entity Class the 'EntityB' with the correct ID, but all fields are empty

Navigation and Parameters

Greetings ObjectDB team, Suppose I pass a List of persistent objects to some query as a parameter, can I navigate to those objects' fields ? E.g.: SELECT x FROM ClassX x WHERE x ... to a field in these objects directly. You need to use JOIN in JPA and contains in JDO

Does ObjectDB support @Parent for @Embeddable reference to parent?

well, but get methods should be annotated when using property access, rather than the annotated fields , as ... , rather than the annotated fields , as shown on the first post. Sorry, excuse lazy copy-and-paste

Dates

object is not required - a primitive long field is more efficient), but usually the difference ... better. If you want to store a timezone you may use a separate int field . support Support

Error with org.springframework.data.jpa.domain.AbstractPersistable

. Caused by: com.objectdb.o.UserException: Unsupported auto value type java.io.Serializable for field ... ;  } } Seems that currently ObjectDB does not support a field of generic type

General Performance Issues Illustrated with a Specific Method

(try different combinations). Adding index to the retired field in client. This is the process ... for this specific query due to the use of a combined OR on fields of two entity classes through JOIN (Client

Explorer doesn't open file

It seems as an ObjectDB Explorer bug is handling a specific field of the type  java.util.concurrent.TimeUnit . Could you please check if after changing the type of that field , e.g. to java.lang

Performance in SELECT statement

/ setters ... } when I query by the "state" field in TestEntity it tooks several seconds to retrieve ... definition is invalid. You cannot define an index directly on a field of embeddable class. Define a path

member visiting in jpql

gzdillon Lai Yang The length field of arrays is not supported by JDOQL / JPQL queries. You may maintain an ordinary int field (holding the array length) for this purpose. support Support

Composite Index error 328

, id2) : : so actually the id field is included in the index, and queries on pwd , access and id can be executed by using the index only with no need to access the data.  Adding a primary key field

Optimization Question

to identify exactly what fields have changed from one update to the next. Currently the following ... multiple threads. So yeah, without some intense analysis (we're talking hundreds of fields with many layers

Catching exceptions from online backup

it would have run fine. However the backupThread object has the exception stored in itself in field 'a', like u can see on the attached screen. So my suggestion is that You could either make this field

Unable to convert 1.x odb file to 2.x

have been found:   Type eu.extech.quant.data.user_attribute.UserAttributesMap, field "map" - 12 ... ; The content of the field 'map' (which is originally a HashMap ) got messed up badly: one key converted

java.sql.Date equals comparison not working with CriteriaAPI

is exactly the same like the value of eintritt field in the DB. java.sql.Date is used everywhere also in the Entity property field to ensure pure date comparison and saving without time parts

persitencia (Preguntas y respuestas)

a table order by a field use an ORDER BY query. Query execution will be faster in the field

Error reading UTF string (Serialized Objects in Explorer)

. It seems that there is a problem in reading the pricing field , whose type is serializable ( Money ... the Explorer but no exception is thrown - only the serialized fields display an error message. support ... after retrieving the BeitragVertragArt class, changing some fields and writing it back? The fix in _14

"is not null" queries not working with index

"is not null"-queries are not working correctly for indexed fields . Following SSCCE creates 1000 entities. A null value is assigned to an indexed field for every second entity. When doing count-queries at the end, wrong results are fetched. import java.io.Serializable; import javax.jdo.annotations

ObjectDB 2.2.8

Fixed a critical bug in extensive removal operations of large objects. Improved the performance of navigation through an inverse (mapped by) field if the owner field is indexed. Fixed a LEFT OUTER JOIN bug . Fixed a bug in parsing queries with parenthesis followed by NOT . Fixed a bug in running

NullPointerException in __odbGetNumMember

Here's the exception message:   Failed to commit transaction: Failed to get numeric value of field field version using enhanced method version is annotated with @Version quasado Alexander Adam Okay

Can not have unique index on Byte Array

[]) treats every element in the collection or the array as a separate entry. Therefore, if a field ... , 1, 2] and obj2 has [2, 3, 4] in the unique byte[] field , an exception is thrown

ObjectDB 2.5.6

Changed merge behavior (following this forum thread ).  Fixed a TomEE - ObjectDB client-server integration issue ( issue #1407 ). Fixed a ClassCastException on selecting an embedded ID field in ... enhancing class files that use INVOKE DYNAMIC. Fixed an error message in accessing a field of an unknown type in queries ( issue #1417 ).

Navigation through lazy loading from Detached Objects

A main limitation of detached objects (as explained on the Detached Entities manual page) is: Retrieval by navigation from detached objects is not supported, so only persistent fields ... , thanks, Webel. webel Dr Darren Kelly Build 2.3.7_01 fixes NullPointerException in accessing inverse (mapped by) fields after detachment. support Support