Home » Search

About step by step

101-110 of 200Refresh
Forum
3

Eclipse plugin problem (using ObjectDB as a separate bundle)

the problem I cleaned by project, and enhanced with ObjectDB with the small utility class public class ... cascaded automatically to referenced objects by default. Therefore, when you persist an object it must reference only objects that are already managed by ObjectDB - otherwise you get this exception
Manual
3

Locking in JPA

update collisions resulting from simultaneous updates to the same data by two concurrent users. Locking ... by another transaction. When using ObjectDB, optimistic locking is enabled by default and fully ... is automatically increased by one. Version numbers are managed internally but can be exposed by defining a version
Forum
3

JPQL query to get entities that does not have a child entity in their child entities

:12:10 14:00:00      001 02    Step_1_Started        2105:12:10 14:00:00      001 03    Step_1_Finished       2105:12:10 14:00:05      001 04    Step_2_Started        2105:12:10 14:00:05      001 05    Step_2_Finished       2105:12:10 14:00:10      001 06    Finished              2105:12:10 14:00
Forum
3

Problem with distinct select, order by and equivalent alias/attribute path

when ordering the results of some projection when the order by expression is different (though logically ... _location "             + "order by s_location.id asc";         System.out.println("Working query ... "             + "left join s.location as s_location "             + "order by s.location.id asc
Forum
3

java.lang.NullPointerException when using ORDER BY

== 0)) ORDER BY r.startDateTime DESC If we remove the ORDER BY part, the query completes OK ... : Caused by: java.lang.IllegalStateException: com.objectdb.o.InternalException: Unexpected internal ... more                                                                                           Caused by: com.objectdb.o.InternalException: Unexpected
Forum
3

Mapped By Fetch is very Slow

Well ! I think i pointed out a HUGE performance issue with mapped-by attribute (yeah ... , go the MyEntity class and remove "mapped-by". You obtain 1 second max of query fetch. So my performance issue ... .ALL,mappedBy = "myEntity") // Test by adding / remove "mappedBy" public MyEntityChild getEntityChild
Forum
3

em.flush(); em.clear(); loosing data and not persisting managed objects

thread "main" [ObjectDB 2.2.3_06] Unexpected exception (Error 990) Generated by Java HotSpot(TM) 64 ... the length of primary keys, but large strings as demonstrated by this test should be avoided ... exception (Error 990) Generated by Java HotSpot(TM) 64-Bit Server VM 1.6.0_24 (on Linux 2.6.32-71
Forum
3

Error using query with MAX() function

exception (Error 990) Generated by Java HotSpot(TM) 64-Bit Server VM 1.6.0_24 (on Linux 2.6.32-71.24.1 ... that is supported by Java (i.e. up to 2GB). Your test case demonstrates an ObjectDB bug in ... ) Generated by Java HotSpot(TM) 64-Bit Server VM 1.6.0_24 (on Linux 2.6.32-71.24.1.el6.x86_64
Forum
3

find() delay

Hi, I tried objectdb in following steps: 1, for 1 to 30 {trans.begin(); create typeC o; em.persist ... , there is no result in one go; I have to disable step 1 and run again, then Step 2 output the expected ... cache? I'm not sure. But why the second find() will output? By the way, a query "select e from nodes e
Forum
3

Tutorial issue

right now, so I created the new project as specified in Step 1 The only thing I did differently was in steps two and three I used the source folder "Tutorial/src" which is what I used to create the project in Step 1; Here's the output; Exception in thread "main" [ObjectDB 2.5.4_04] javax.persistence