About SECOND

issue

JDO PersistenceManager.getSequence() returns null sometimes

When using JDO without annotations, database sequences are normally defined in the ORM file. Following discussion on the forum I was told that ObjectDB supports sequences if specified in the JDO file. Unfortunately, it doesn't seem to be supported consistently. It appears to work only in the situation that a new odb file has just been created AND something has been persisted to it. If nothing has yet been persisted, or if the odb file is not newly created, getSequence() returns null. Code to reproduce: ... the first time but bomb out with NullPointerException the second time. Entity class, in package testcase: package ...

 
release

2.3.0

... ( YEAR , MONTH , DAY , HOUR , MINUTE , SECOND ). Added support of  bypassing no arg ...

 
forum_thread

Date field Index is corrupted due to time change

Hi, can you shed some light on why we cannot delete data from the attached DB file. A delete attempt with DB explorer results in the following exception: ... ) ; calendar. set ( Calendar. SECOND , 0 ) ; calendar. set ( Calendar. ...

 
forum_thread

Efficient query on EmbeddedId

Hi! I have an entity class with an @EmbeddedId (field1 int and field2 int). Based on the manual, I understand that making a query just on entity.id.field1 is efficient. Of course, making a query containing the whole EmbeddedId is the ideal case, and I use it, but I need more use cases. ... that a query on field2 may be slower than a query on the second field (non ID) in an ordinary composite index, since a full scan of the ...

 
forum_thread

Threading Problem (maybe with Criteria)

Hi all I found some threading problems I do not understand: here is the the link to the testcase http://www.advolux.de/weblink%20forum/test.zip ... Thread. java : 722 ) 2. The second one is an ' IllegalArgumentException ' it seems, that the ...

 
api-jdo

setResultClass(cls)

Specify the type of object in which to return each element of the result of invoking execute or one of its siblings.(Method of javax.jdo.Query)

 
forum_thread

Explorer in 2.3

First, the new Explorer in ObjectDB is fantastic! This is exactly what we've needed - an easy way to do ad-hoc JPQL queries and navigate through the results and even make small changes to primitive data and Strings. After playing with it for a while, here is a list of additional features I'd love to have: 1. Export of selected data: a. Simple - Select a range of cells or a column header and copy text to the clipboard or save to a file (csv, html, etc..). (There appear to be copy menu options, but I cannot get them to work.) #1 2011-10-04 20:50 First, the new Explorer in ObjectDB is fantastic! This is exactly what we've needed - an easy way to do ad-ho ...

 
forum_thread

Lazy loading does not work - crud takes long

tomee7.0.0SNAPSHOT,objectdb 2.6.4 The OneToMany Entities are filled with 40.000 Records and they have between 20-40 Columns. It takes over 50s to load all Project Enities that contains the OneToMany Relationships. It should be load lazy but i didnt know why the query fetch all the Data. ... (10.000 Recors). The API need for 50 Records 1 second to remove. for ( Datapoint d : list ) ...

 
forum_thread

OptimisticLockException

Have read read the documentation on optimistic locks, still not sure how to deal with these exceptions: [ObjectDB 2.2.5_04] javax.persistence.RollbackException Failed to commit transaction: Optimistic lock failed for object   ... refresh . You may choose to do that only during a second attempt after an optimistic exception (to improve performance). ...

 
forum_thread

possible index required for improving query performance

Hi,   I have the following entity class:   @Entity @Table @Indices({ @Index(members={"relationshipType", "party"}), @Index(members={"relationshipType", "otherParty"}),     @Index(members={"relationshipType"}) }) @XmlRootElement public class Relationship implements Comparable<Relationship> { ... compared to a dedicated simple index) but not of the second or third element, so the order of elements in a composite index makes a ...