About like

forum_thread

TYPE Expression

Hi there! Trying to add a simple type expression with the criteria api like in your sample: cb.notEqual(e.type(), cb.literal(Country.class)); results in the error: Caused by: com.objectdb.o.UserException: Attempt to store an instance of a non persistable type java.lang.Class at com.objectdb.o.MSG.d(MSG.java:61) at com.objectdb.o.TYW.writeElement(TYW.java:223) at com.objectdb.o.QRR.l(QRR.java:424) at com.objectdb.o.QRR.g(QRR.java:230) at com.objectdb.o.QRR.b(QRR.java:151) ... to add a simple type expression with the criteria api like in your sample: cb. equal ( e. type ( ) , ... list. leaving it out removes the error, other filters like string equals etc. work just fine? thanks for any help! ...

 
forum_thread

ObjectDB Privacy

What privacy does ObjectDB have to offer? I'm watching my firewall and it looks like ObjectDB is pushing my data out? Are there any guarantees that I will retain my privacy when using ObjectDB? ... have to offer? I'm watching my firewall and it looks like ObjectDB is pushing my data out? Are there any guarantees that I will ... 21:34 Yeah it looks like it was just my application itself, not actually ObjectDB. However, is ...

 
forum_thread

"Problem" with cross join

At first, this is my first JPA Projekt - and the code should work with Hibernate and JPA, using the specifc DAOs. Following query string returns no result using ObjectDB - using Hibernate, or EclipseLink this query works fine. select distinct c from CI c, CIstring s where c.name like :SSTR or (c.id = s.ci.id AND s.text like :SSTR) The class CI (Confiugration Item):...private String name;@OneToMany(mappedBy="ci") private List<CIdata> content;... select distinct c from CI c, CIstring s where c.name like :SSTR or (c.id = s.ci.id AND s.text like :SSTR) The class CI (Confiugration Item): private ...

 
forum_thread

IMK Stall with certain query

Hello, I am experiencing constant IMK Stall notifications from Java when using certain query: 2015-09-01 16:53:15.785 java[3678:5217999] IMK Stall detected, *please Report* your user scenario in <rdar://problem/16792073> - (imkxpc_deadKeyStateWithReply:) block performed very slowly (4.63 secs) i am sure it is linked with objectdb as these are thrown each time one particular query is used: ... OrderData . class ) ; Predicate p1 = cb . LIKE ( cb . lower ( ORDER . get ( "buyerId" ... ) , param ) ; Predicate p2 = cb . LIKE ( cb . lower ( ORDER . get ( "buyerName" ...

 
forum_thread

String representation of a query

Hi, Is it possible to get a JPQL string having a Query object instance? JpaQuery class doesn't have any method like "getQueryString" or "getDatabaseQuery", maybe it's going to be added in near future? It would be very helpfull to have something similiar to Hibernate etc : findAllBooks.unwrap(org.hibernate.Query.class).getQueryString() I would like to measure time of query execution and log that information with JPQL string and parameters map to find and optimize the most ineffective cases. ... instance? JpaQuery class doesn't have any method like "getQueryString" or "getDatabaseQuery", maybe it's going to be added ... . getQueryString ( ) I would like to measure time of query execution and log that information with JPQL ...

 
forum_thread

ObjectDB JDBC to Object compiler

Hello , some products developed by JDBC , So we cannot use ObjectDB. My idea is , you can make JDBC To ObjectDB wizard compiler or something like this. You can eliminate JDBC Requests from Java Code. It can be Intellij or Eclipse IDE plugin for ObjectDB.   It dedects strings and combinations like "insert into ObjectT values('hasan','test')" to ObjectT obj = new ObjectT("hasan","test"); em.persist(obj);   ... you can make JDBC To ObjectDB wizard compiler or something like this. You can eliminate JDBC Requests from Java Code. It ...   It dedects strings and combinations like "insert into ObjectT values('hasan','test')" to ...

 
forum_thread

Objectdb server out of heap space

I have had a server crash with the following stack trace: ... never end up in a situation where it runs out of memory like this.  This could be a serious problem for out deployment of objectdb ... never end up in a situation where it runs out of memory like this. Servers that run on Java JVM, such as the ObjectDB server, ...

 
forum_thread

multiple LEFT JOINs do not work as expected

Hi, We have a hierarchical data set of organisations in the database, where each organisation stores a reference to it parent organisation. I'm trying to find all organisations 2 levels under a root organisation, e.g. where organisation.parentOrg is the root or organisation.parentOrg.parentOrg is the root. The query also contains a number of other predicates and it is built dynamically using Criteria API. It could be looking for other number of levels, 2 is just an example. The test query looks like this: ... levels, 2 is just an example. The test query looks like this: SELECT DISTINCT $1 FROM Organisation $1 ... you  please advise if this query is supposed to work like that? I'm running 2.3.4_05 version. Kind Regards, ...

 
forum_thread

Search through collection for value using index

I have an entity that contains a java collection of a Long id of user entities that can modify it (many users can modify it).  I would like to be able to search for all entities that can be modified by a paticular user, since I will do this query often I would like to index it.  How would I tell ObjectDB to make an index and then use it in a query? I have yet to deploy this entity so I could do something besides a java collection if there is a better approach. ... can modify it (many users can modify it).  I would like to be able to search for all entities that can be modified by a paticular user, since I will do this query often I would like to index it.  How would I tell ObjectDB to make an index and then use ...

 
forum_thread

Custom Classloader: Issues with the Enhancer Agent

In my use case I generate some classes dynamically and load them with a custom classloader. The classloader is very standard and does something like this (simplified): ... The classloader is very standard and does something like this (simplified): public class MemoryClassLoader extends ... the Agent is enabled it is causing issues and I get errors like this: Java. lang . LinkageError : loader ( instance ...