About field

forum_thread

Mismatch client-server protocol prefix

Hello! We migrated one of our legacy webservices to Spring Boot/Spring MVC. Now i have a strange problem. At first the app runs perfectly for a couple of hours. After that it stops working and I get the following exception: ... We are persisting a new instance of LoginEvent. The Id field is not explicitly set and the field is annotated with: @ Id @ GeneratedValue ...

 
forum_thread

object creation during pmf.getPersistenceManager()

Hi #1 2011-07-28 10:37 Hi   We have observed that during pmf.getPersistenceManager(), objectdb is creating object instances ...

 
issue

Issue with DISTINCT Select

It is getting more and more frustrating :( We've introduced distinct select instead of regular selection in our code (no changes else) and suddenly receive invalid identifiers in queries exceptions in various queries. Here's the stacktrace: ... because you are trying to order the results based on a field of $2 - after eliminating $2 from the results. Notice that if profile ...

 
issue

Schema-Update: Deactivation of automatic entity class removing and introduction of a new class remove in the schema config

Hello, in our application we use ObjectDB in embedded mode as part of the Profile that can be stored and opened by our customers. Our application is an eclipse RCP application with a domain-driven design. The product can be installed in different configurations (in other words with more or less PlugIns). This presents us with further challenges when we have made changes to DB schema for new versions. Feature Request Version: 2.7.1 Priority: High Status: Active Replies: 4 Type:  Feature Request ...

 
forum_thread

com.objectdb.o.UserException: Failed to generate dynamic type

Hi, I am trying to open a DB and I get the following error:   ... Reading about Schema Update. I see there is Package/Class/Field elements in the schema - but where do I find the schema section? In which ...

 
forum_thread

Entity listener - event instead of object

Hi, Currently I'm playing with entity listener to implement auditing with difference between values in updated entity. There is a problem however with accessing "old" version of object stored in database. I can't find the nice way to use EntityManager in EntityListener. Because of that, I can't store separate entity for given event. Right now I'm using BaseEntity which contains #1 2011-07-20 12:49 Hi, Currently I'm playing with entity listener to implement auditing with difference between values i ...

 
issue

TYE NullPointerException

I've been seeing the following stack trace in a couple of tests today: ... another situation that may cause it - using a collection field of an entity object that has been garbage collected. If this is the case ...

 
forum_thread

OEM Enhancer causing Jenkins job to freeze

Hi all, We are using ODB enhancer in one of our jobs on jenkins, built via ant. Recently we started to encounter situation, where this job's execution gets stuck for ever on Jenkins. This is causing us a lot of problems with our CI. ... sun.reflect.ReflectionFactory#1 at java.lang.reflect.Field.acquireFieldAccessor(Field.java:918) at java.lang.reflect.Field.getFieldAccessor(Field.java:899) at ...

 
forum_thread

com.objectdb.o.NLV cannot be cast to com.objectdb.o.RSV

Hello! This query is working fine SELECT DISTINCT $1 FROM ChatHistoryItem $1 JOIN $1.recipient $2 JOIN $1.sender $3 WHERE ($2.id='22afeafe-363f-4397-8553-cc5688ba142d') OR ($3.id='22afeafe-363f-4397-8553-cc5688ba142d')  ORDER BY MAX($1.createDate) DESC   but this query returns an exception "com.objectdb.o.NLV cannot be cast to com.objectdb.o.RSV" SELECT DISTINCT $1 FROM ChatHistoryItem $1 JOIN $1.recipient $2  ... holds its own PersonalData instance in the receipt field. To avoid data duplication consider using Entity instead of ...

 
forum_thread

Extra uninitialised entities spawned on merge()

In the following, Element is a base entity class, with a bi-directional @ManyToOne-@OneToMany relationship Element owner - List<Element> ownedElements, and Example is a subclass entity with a relationship @OneToOne Element child. ... Build 2.4.0_05 fixes it. You have to set the name field as persistent (by adding a property) in order to get the correct output: ...