About Id

forum_thread

Unable to persist TreeMap

import java.util.SortedMap; import java.util.TreeMap; import javax.persistence.Entity; //---------------- @Entity class Person { public SortedMap<String, String> memberships = new TreeMap<String, String>(); } //Person   ... the database in the Explorer you will see that now the Id of the Person instance is #2. Id #1 is now allocated to the Association instance. Accordingly, the find ...

 
forum_thread

Replication error on slave restart

I'm trying to enable replication on master server that was running with "recovery" enabled previously. I have copied database file to slave... and so on by manual. It worked fine. But if I restart slave server: ... Slave server doesn't like when I'm reusing ID, unlike master where everiting is perfect! ... Source) Level has program generated @id. And sometimes I use "DELETE lvl FROM level lvl" to reassemble level data ...

 
issue

again merger missing logs + objectdb exception

we are facing similar problems as we had before, in the log we have a lot of entries merger ... missing + an objectdb exception. Some objects in the system behave strange. This is a part of the log: ... [2017-09-26 12:16:14 #1222 store] SectionClassifier: SectionClassifier{238146996->merger[3309]-missing:1} [2017-09-26 12:16:25 #1223 store] SectionClassifier: SectionClassifier{238146996->merger[3309]-missing:1} ... regards the query, we'll try to find that. What is the id of that large corrupt property object ? ... 2017-10-07 18:11 The id of the corrupted object property is 238146996. There is another ...

 
forum_thread

Problem with bidirectional link

(I had raised this issue in the past and have finally had time to come back to it and strip down the classes to a minimum). The problem seems to lie in having bidirectional links (viz, I have @OneToMany Map<String, Entry> children and @ManyToOne Entry parent in my classes. I've attached the offending classes. If I add an entry to the children I get an error. I'm wondering if it's a question of multiple references to the same instance of a class? It's hard to tell with the opaque code of ObjectDB. ... all the Folder instances are persisted with the same id = 0. You can easily solve the problem by annotating the id field with @GeneratedValue. I will check how the error message ...

 
forum_thread

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

We are using ObjectDB 2.5.1_04. The following JPQL query causes an internal exception: SELECT COUNT(r) FROM RecordingMetaData AS r WHERE ((r.mapFromCli LIKE '192.168.10.13%' ESCAPE '\')) The exception: ... RecordingMetaData {   private Long id ; private Long version ; : private String ... RecordingMetaData {   private Long id ; private Long version ;   private Date startDate ...

 
forum_thread

Iterating over large result set

Hi, Few days ago I was writing some code to iterate over quite a large dataset. Fitting those data in memory was quite a challenge even with 3GB heap space. So I did paging using two loops. ... you will add a constraint in each iteration based on the ID (primary key) of the last retrieved entity object. ... you will add a constraint in each iteration based on the ID (primary key) of the last retrieved entity object. This could ...

 
issue

ClassCastException thrown when running count query

Hello! Attached you find a full stacktrace. The query was: ... FROM Position p WHERE p . unit . unitID = :id :id = 101 The exception looks different (embedded vs server mode) but i ...

 
manual

[ODB1] Chapter 4 - JDO Metadata

Shows how to define JDO metadata for persistence capable classes.... always uses datastore identity with its own object-id class). 4.3  Metadata for Fields Unlike persistent classes, ... and improve efficiency, but they do not have an object ID and cannot be shared by references from multiple objects. In addition, ...

 
forum_thread

UserException - Object User#2 belongs to another EntityManager

Hi! Scenario's steps: 1. User goes to his profile, a JSF page. 2. @RequestScoped CDI bean UserDataB loads the current user of the session at each request, by using @Stateless bean UserC#findUserById(Long id) 3. JSF page's @RequestScoped CDI bean AnotherB loads trades of that user, by using @Stateless bean TradesC#findTradeByClient(User u). ### UserC and TradesC have their own @PersistenceContext EntityManager with the same unitName. ... request, by using @Stateless bean UserC#findUserById(Long id) 3. JSF page's @RequestScoped CDI bean AnotherB loads trades of ... by detaching User entity after query in #findUserById(Long id), but this shouldn't happen, at least in my understanding of how ...

 
issue

Error on commit

I get the following on commit:  (v2.3.7_15) Let me know if you need more info. ... should have in the log file lines such as: BTree ID: BTree Name: BTree Page: Request code: ... Please post them. ... entry: [2012-04-20 11:56:07 #201 store] BTree ID: -108 [2012-04-20 11:56:07 #202 store] BTree Name: ...