ObjectDB Database Search

151-200 of 200 results

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

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 ... this query: (I know, it's not very efficient...) select i from Invoice i order by i.getPrice() desc/asc ... ORDER BY i.getPrice() DESC");         List resultList = query

persistence.xml classes not respected by ObjectDB

have already tried a couple of times. The lucky part is that I have the old DB on my development machine. By adding class by class into that one, it seems that they ODB didn't merge all classes, as it does if I ... the fact that they don't appear in the development DB, the DB that got added class by class, as

Multi threading on DMOs by lazy loading

It is possible to use lazy loading on fields of attached entities by several threads? Example: class EntityZ { @OneToOne(fetch = FetchType.LAZY) EntityX fieldX; @OneToOne(fetch = FetchType.LAZY ... fieldX by lazy loading. Thread2 access fieldY by lazy loading. Thread3 access list by lazy loading

How to disable use of graphic windows by objectDB

:223) at com.objectdb.Server.run(Server.java:107) at com.objectdb.Server.main(Server.java:66) Caused by ... .objectdb.Server.main(Server.java:66) Caused by : java.net.UnknownHostException: GhostRider: Name or ... .objectdb.Server.run(Server.java:107) at com.objectdb.Server.main(Server.java:66) Caused by : java.net

order by string with numbers

  The sql that works is ORDER BY CAST(SUBSTR(username FROM 4) AS UNSIGNED) ASC Using JPQL SELECT u FROM Users u ORDER BY SUBSTRING(u.username,4)*1 ASC If you have other alternative for JPA ... It seems that this is not supported by JPA criteria queries. If you need a solution only for ObjectDB

how to query by properties of onetomany relations? (Error 990)

; Generated by Java HotSpot(TM) 64-Bit Server VM 1.6.0_23 (on Windows 7 6.1). Please report this error ... - it should be replaced by a more descriptive error message in future versions. However, this query ... is a bit longer but it is JPA portable. ObjectDB can enforce using standard JPQL by setting

Master database switching to read-only mode, possibly caused by slave failure

, slave became unresponsive and the master switched to read-only mode. By the look of it the slave ... ) .............................................................. Caused by : com.objectdb.o.UserException: Connection is closed at com ... /objectdb/db/$replication/contextspace.odb' is closed by 30752@hardhead We did not see anything wrong

UserException: Package com.example.model is not found by the enhancer

get the exception: com.objectdb.o.UserException: Package com.example.model is not found by ... by different class loaders and the Enhancer do not have access to the classes. Enhancing by invoking

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 ... = "myEntity") // Test by adding / remove "mappedBy" public MyEntityChild getEntityChild() {  

Need help to analyse very high memory usage by objectdb (PRU, SEV, VAL[])

exceeded" exception. Nearly 90% of the memory are taken by com.objectdb.o.PRU (49%) com.objectdb.o.SEV ... /query/domain/objectdb.com Forum Thread Need help to analyse very high memory usage by objectdb objects (PRU, SEV, VAL[]) has been created. btc_es BTC EmbeddedSystems This may be caused by large insert

Extending model by "common entity"

:662) [na:1.6.0_22] Caused by : java.lang.ClassNotFoundException: pl.hplxtool.model.BaseEntity at com ... explorer or doctor. lwalkowski Lukasz Walkowski This schema change should be handled by ObjectDB ... is generated by the server). If it doesn't help - please post (or submit in a support ticket) a test case

Connection is closed Caused by: java.io.EOFException

after an undetermined period. Caused by : com.objectdb.o.UserException: Connection is closed at com ... .createEntityManager(EMF.java:160) ... 39 more Caused by : java.io.EOFException at com.objectdb.o.NTS

Java methods in queries are now forbidden by default

Starting with build 2.9.5_02, arbitrary methods in queries are forbidden, unless enabled explicitly before accessing ObjectDB by : System.setProperty("objectdb.temp.unblock-query-methods", "true"); (or by running the JVM with -Dobjectdb.temp.unblock-query-methods=true ). The purpose of this change

Null returned by Persistence.createEntityManagerFactory

the application I get an exception. The exception is ultimately caused by a null pointer on the line "em ... it is, because stack traces are occasionally inaccurate. Try to change your code by moving suspected lines to separate methods, etc. support Support

Getting java.lang.ArithmeticException: / by zero

() is throwing the following exception ava.lang.ArithmeticException: / by zero at com.objectdb.td.remove(td.java ... Binit Bhaskar This division by zero occurs in some hash table that happens to have a 0 size (but I

Unable to repair DB by Doctor.

Hi, I am unable to repair a database by Doctor. Getting following error. com.objectdb.o.UserException: Failed to locate field field com.apps.test.ContactTab.col8 using reflection at com.objectdb.o ... ) at com.objectdb.o.DCM.j(DCM.java:112) at com.objectdb.Doctor.main(Doctor.java:10) Caused by : java

a second mapping-file is ignored in persistence.xml by enhancer

will be enhanced by following output: enhancer: [java] [ObjectDB 2.6.0_02 Enhancer] [java] 3 persistable ... will be enhanced by following output, because the enhancer is apparently ignored the ormreq.xml

NULL prefered in ORDER BY?

Hi! Is there a way to NOT prefer NULL in Order BY ? I.e. assume this: @Entity class Hint {     private String name; } @Entity class Test {     private Hint ... do something like SELECT FROM Test ORDER BY hint.name It orders ASC like this (assuming I've got

find out if an entity is refered by other entities

Hello, it is possible to find out if a child entity is just referenced by other parent entity types. But the types of the parent entities are unknown. Is there a possibility to find out if an entity is referenced? best regards btc_es BTC EmbeddedSystems You can only find it (using a query

Bug: ClassCastException by retrieval

tn3 = em.find(tNode.class, 1);   System.out.printf("find by retrieval : %s %n",tn3.getTa

Query by array element

MyEntity that wraps the array access operation and then use that method in the query. It is supported by

Get multiple entities by Id

I'm trying to fetch a list of entities, by their Id. I Use this query: SELECT c FROM User c WHERE c.id IN :ids This querey works as long as I don't set the property "id" as @Id. If i set @Id to any other member, this query works, if I set id as @Id, it stops working and gives zero results

Internal ObjectDB error by read the primary key

covered by the fix of 2.6.6_05. Build 2.6.6_06 should fix it. Unfortunately it is difficult to cover

Retrieval by Access bug?

of objectC, and I cant find any reason for that. Could be any bug in ObjectDB when I retrieve by navigation

Will Entire JPQL Supported by ObjectDb?

JPQL features are not supported yet by ObjectDB. The main missing feature is subqueries

Finding an object by its datetime

. I want to search for objects by exact timestamps.   takada Takumi Adachi It should work

A lot of ENT and SIV instances which are not cleared by GC

and fixed (in build 2.6.1_01) a bug in cascading detach through mapped by to-many relationships

Update more than 10000 entities by an update query fails

Hello, following example tries to update more than 10000 entities by an update query. But only the first 10000 elements are updated. What's wrong?   public class updateMoreThan10000Elements { static int idCounter = 1; public static void main(String[] args) { EntityManagerFactory emf; emf

query null or by zero error

we have the critical problem that we receive a null or by zero (in the log a java.lang.ArithmeticException) error for this query: select o from ObjectNode o where o.currentLocation.nodePath = "/(MG)TOOLPOOL-DMC-125U4/(MP)IN" and o.classIdentifier = '(TP)' database can be download from

java.sql.Time field off by 30 minutes

java.sql.Time field off by 30 minutes

getting "Unexpected total page count" error when diagnosis mu db by ObjectDB doctor.

getting "Unexpected total page count" error when diagnosis mu db by ObjectDB doctor.

Can you implement fastest Native JPA for MySQL by ClusterJ like?

Can you implement fastest Native JPA for MySQL by ClusterJ like?

Version 2.5.6 enhancement problem solved by updating to version 2.5.7_03

Version 2.5.6 enhancement problem solved by updating to version 2.5.7_03

fetch by enum

fetch by enum

Update is ignored by ObjectDB

Update is ignored by ObjectDB

Safe to monitor listening port by connect/disconnect?

Safe to monitor listening port by connect/disconnect?

In version 2.5.2_05 does not work greatest by Date

In version 2.5.2_05 does not work greatest by Date

Restrict by class in query

Restrict by class in query

ObjectDB auto sharding by simple algorithm

ObjectDB auto sharding by simple algorithm

Bulk load of eager mapped by (inverse) relationships

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

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

Alias not used in ORDER BY

would have expected the alias to be used in the ORDER BY clause, something like SELECT $1, UPPER($1.someStringProperty) AS TEST FROM T ORDER BY TEST However what I actually get as query string is SELECT $1, UPPER($1.someStringProperty) AS TEST FROM T ORDER BY UPPER($1.someStringProperty) This doesn't

JPQL support for mapped by (inverse) collections

, SIZE, MEMBER OF, IN) are currently not supported for mapped by (inverse) collections. These operations are supported for direct (not mapped by ) collections. Navigation and JOIN is supported for both direct and mapped by collections. The following test case demonstrates a problematic query

InternalException caused by OOM: Metaspace

.5_05] Unexpected exception (Error 990)   Generated by Java HotSpot(TM) 64-Bit Server VM 1.8.0 ... ) and the next part: Caused by : java.lang.OutOfMemoryError: Metaspace at java.lang.ClassLoader

Lazy retrieval by access not working correctly

I have a problem loading lazy associations by access/navigation with an @Embedded attribute containing an @ElementCollection which is lazy loaded.  I'm not sure if the same problem exists ... { ... @ElementCollection // lazy loaded by default private Map values; ... } @Stateless public class

Incorrect entity returned by query

Incorrect entity returned by query

JPA Criteria Query Expressions

expression handling by using a minimal set of reusable interfaces, so many different types of expressions are represented by the same Expression interface.  Core expressions The following interfaces

JPA Lifecycle Events

annotation. By default, callback methods in a superclass are also invoked for entities of its subclasses ... attached to an entity class are inherited by its subclasses. To prevent this inheritance, add

Spring MVC and JPA Tutorial

a basic guestbook page. Every visitor can sign the guestbook by filling a simple form. All visitors that have already signed are listed below the form: Persistence is managed by JPA. Every visitor