About Id

forum_thread

ObjectDB 2.7.2_x Doctor Yields "Index Requires Rebuild" Always

Take a .odb created with ObjectDB 2.7.2 or later OR EARLIER.  Run ObjectDB 2.7.2 Doctor on it.  See indexing errors reported. Run ObjectDB 2.7.1 on same .odb and you will not see indexing errors. Run ObjectDB 2.7.2 (or later or earlier) Doctor with repair and create repaired.odb.  repaired.odb will still show indexing errors when ObjectDB 2.7.2 (or later) Doctor is run on the "repaired" database. ... . protocol . server . jdo . JdoEntityId [ id ] requires rebuild. - missing entries : 7 - extra ...

 
issue

preUpdate-methods are called when there is no change

Dear Support Team, we ran into some difficulties with a database. When fetching a entity using the EntityManager and afterwards calling "iterator().next()" a transaction begin/commit will end up in updating the Entity even there was no change. We attached a simplified test case where only 2 reduced versions of the entities are available. But it still shows the unexpected behavior. To reproduce just run the "EntryPoint" class. ... hashCode and equals methods based on the object id or content (and not the methods that are inherited from java.lang.Object ...

 
issue

Internal exception on flush

Today I received the exception below on running the following code: ... = em. find ( ExecutionGraph. class , id ) ; if ( loadedgraph == null ) ...

 
issue

JPQL Case Statements (JPA 2.0)

JPQL 2.0 adds support of CASE statements in queries for conditional expressions (similar switch/case/default in Java), following the SQL syntax. Case statements are currently not supported by ObjectDB.... expanding. Need for cases like: SELECT TYPE(e), e.id, e.name, TYPE(e.project), e.project.id, e.project.name, TYPE(e.owner), e.owner.id, e.owner.name FROM Element e ...

 
forum_thread

Changes in detach behaviour?

Hello! Today i upgraded to 2.3.5_04. My program stopped working. After some debugging i found out that all fields of retrieved objects are on their default value till i first call a getter or detach them explicitly. Up to 2.3.4 they where initialized immediately. The problem in my case is that i have a Spring DAO. It does the following: I call for example getUserByName("blub). ... I get an empty detached user object back. Only the id is correct. Shouldn't the detach and field population happen ...

 
forum_thread

JVM crash when using IBM JDK 1.6.0

The FAQ states in the system requirements only that a JDK/JRE 1.5 or 1.6(prefered) is required. When I try to use the IBM JDK 1.6.0 I get a GPF exception while creating the entity manager. Looks like a call to putInt on sun.misc.Unsafe object Does this mean there is a BUG in the IBM JDK or are not all JDK's supported? ... state:R, prio=5 3XMTHREADINFO1 (native thread ID:0x1CDD, native priority:0x5, native policy:UNKNOWN) 3XMTHREADINFO2 ...

 
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? ... with this code: "DELETE l FROM License l WHERE l.id = ?1" , License. class ) ; query. setParameter ( 1 , id ) ; int changes = query. executeUpdate ( ...

 
issue

Negative snapshot user count exception

I found the following stack trace in my log files; it's cropped up a number of times: ... 14:05:23 #188 *] transaction Id = 506009, new file size = 297009152, dirty pages = 1, update list s = 2, ...

 
forum_thread

License Activation Change and Checking Activation

Hello! How does ObjectDB determine the machine ID? Yesterday I activated our license on my development laptop and today I tried to persist more than 1M objects. ObjectDB told me that it cant't do that because of the evaluation restrictions. Now I activated it again on the same machine and got a different activation code. With this code it works. The only difference I can think of is that my WiFi was disabled yesterday and today it's not. ... Hello! How does ObjectDB determine the machine ID? Yesterday I activated our license on my development laptop and today I ...

 
api-jdo

getObjectById(oid)

Looks up the instance corresponding to the specified oid.(Method of javax.jdo.PersistenceManager)