About Id

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

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 ...

 
manual

Shared (L2) Entity Cache

Explains how to set and use the EntityManagerFactory's shared cache (L2 / level 2) in JPA 2.... ( MyEntity. class , Long. valueOf ( id ) ) ; Cached entity objects can be removed from ... ( MyEntity. class , Long. valueOf ( id ) ) ;   // Remove all the instances of a specific ...

 
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: ...

 
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 ...

 
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

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

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 ...

 
api-jpa

javax.persistence.SqlResultSetMapping

Specifies the mapping of the result of a native SQL query.(Annotation of JPA)

 
forum_thread

ODB IndexActivation NullPointerException

Hi, We have created indexes on an existing database, which has 4.3 million objects. As soon we create first query, NullPointerException is thrown: ... isse.   ODB-IndexActivation thread (id:427) -> waiting for MST   (owend by Thread: [pool-5-thread-3] ... ->  waiting for  Thread id:427  (ODB-IndexActivation)   the Thread.join() was called by ...