Home » Search

About step by step

111-120 of 200Refresh
Forum
3

Cannot sort descending, when ordering by caluculated float in a method

Hi, I have found an issue in ordering by a method. I have two entities : Invoice and InvoiceItem ... ...) select i from Invoice i order by i.getPrice() desc/asc it gives the same order for desc and asc ... .createQuery(             "SELECT i FROM Invoice i ORDER BY i.getPrice() DESC");         List resultList
Forum
3

Merge of entity classes with "mapped by" very slow

Hi, I have found a strange behavior when merging entities with "mapped by" set on @OneToMany ... - one with mapped by, second with adding entities list without "mapped by". The difference is huge event for such small objects - 2ms (without mapped by) vs ~50ms (with mapped by) Is there any chance
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
Issue
3

Bulk load of eager mapped by (inverse) relationships

When a collection of objects is retrieved by ObjectDB (e.g. by a query) ordinary referenced objects ... . However, inverse (mapped by) references that have to be loaded eagerly currently do not participate ... a separate client-server round trip. Future versions of ObjectDB should load eager mapped by (inverse
Forum
3

find repeated records by JPQL

.getResultList(JpaQuery.java:636) at image.cleanDB.main(cleanDB.java:19) Caused by: com.objectdb.o ... (QRR.java:197) at com.objectdb.jpa.JpaQuery.getResultList(JpaQuery.java:627) ... 1 more Caused by ... MySQL? TIA Subqueries are not support by ObjectDB yet - see this feature request. Getting
Forum
3

Grouping by date()

have to group by date(). For few queries I was concatenating 'date' from year()-month()-day() calls ... implementation. There is only one small problem with new version. When you group by date() there are two days per day. I mean group by divides each day for two parts. You can see an example in attached
Issue
3

Lazy loading of mapped by (inverse) singular references

ObjectDB ignores lazy setting of non collection mapped by (inverse) fields and loads them always eagerly. This is allowed by JPA since lazy is only hint but it is not efficient. The reason ... , so it is always available. For mapped by (inverse) reference fields no information is stored in the entity