About int

forum_thread

Index on map key

Is there a way to create an Index with @Index on the key of a map? ... begin ( ) ; for ( int i = 0 ; i < 100000 ; i ++ ) { ...

 
forum_thread

Replication Issue

Hi, I am trying to use replication for this first time - so most likely I am doing something wrong. I have server on which I run my master DB server java -cp objectdb.jar com.objectdb.Server start -conf objectdbMASTER.conf on the same server I run a java program - which is writing objects every second a database KAKI.odb - here is the code: ... ( ) ;   int count = 0 ; while ( true ) ...

 
forum_thread

member visiting in jpql

baURI is a byte[]; JP QL> select e.baURI.length from URI e where id=82778 JP QL> [ObjectDB 2.2.9_04] javax.persistence.PersistenceException Navigation from 'byte[]' through 'length' is invalid (error 763) at com.objectdb.jpa.JpaQuery.getResultList(JpaQuery.java:636) at util.JPQLcmd.QureyCMD(JPQLcmd.java:43) at util.JPQLcmd.main(JPQLcmd.java:28) Why I can not visit the length attribute? TIA ... / JPQL queries. You may maintain an ordinary int field (holding the array length) for this purpose. ...

 
forum_thread

Fetching Collections Puzzle

I am working on a project where I need to travel through a massive graph of objects. One of the main entity is the Node which is shown below. class Node { Node parent List<Node> children Node rightSibling Node leftSibling int rank } I have the following issues/doubts ... children Node rightSibling Node leftSibling int rank } I have the following issues/doubts ...

 
forum_thread

Unable to store AtomicInteger

In the docs, all serializable types should be persistable. However, when I tried to persist a field of type AtomicInteger, I got the following message: Message: Failed to commit transaction: Attempt to store an instance of a non persistable type java.util.concurrent.atomic.AtomicInteger I am using ObjectDB 2.6. Is this a bug? ... not an entity class, the other alternative is to store an int then from the entity call an extra setup function in @PostLoad, which is ...

 
forum_thread

Performance in SELECT statement

Hello, I have the following 2 entities : ... private Long lastProcessingDate ; private int processingCount ;   @ Enumerated ( ...

 
forum_thread

java.lang.UnsupportedOperationException

com.objectdb.o.InternalException: java.lang.UnsupportedOperationException: Unsupported feature - Update queries are not supported yet java.lang.UnsupportedOperationException: Unsupported feature - Update queries are not supported yet. Used with this code: "DELETE l FROM License l WHERE l.id = ?1", License.class); query.setParameter(1, id); int changes = query.executeUpdate(); Is there a workaround? ... setParameter ( 1 , id ) ; int changes = query. executeUpdate ( ) ; Is ...

 
forum_thread

java.sql.Timestamp.getTime() not working

Hi, I need to work with Timestamp diff in two entity fields, but this queries SELECT count(p) FROM Player p WHERE p.loginAt.getTime()-p.registeredAt.getTime()>:value SELECT p.loginAt.getTime() FROM Player p fails with object is not an instance of declaring class but SELECT p.loginAt.getYear() FROM Player p works. How that possible?   ... GenerationType . IDENTITY ) public int id ; @ Temporal ( TemporalType . TIMESTAMP ...

 
forum_thread

How to do multithreading with embedded ObjectDB

Hi, I've tried to implement a counter with ObjectDB, but the following code doesn't work as expected: ... ( 100 ) ; for ( int i = 0 ; i < 100 ; i ++ ) { ...

 
api-jpa

javax.persistence.DiscriminatorColumn

Specifies the discriminator column for the SINGLE_TABLE and JOINED Inheritance mapping strategies.(Annotation of JPA)