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

Embedable & Reference?

Hi! I've got a situation I do not understand. Assume code like this: ... I've got a situation I do not understand. Assume code like this: @ Embedable public class EmbeddedThing { ... do is to modify the newly added thing by calling something like getFirstEmbeddedThing().setName("Yeah"). However, after comitting, the ...

 
forum_thread

Question about roadmap

Hello ObjectDB community! I am new to ObjectDB, already read about it, but never really got my hands on it. I was reading through some forum posts, issues and the documentation to see if ObjectDB would be an option for me and in the end I came to the result "not yet". Here are my requirements to ObjectDB that does not seam to be fulfilled yet: ... Support for automatic entity auditing like in Hibernate Envers Support for Apache Lucene like in Hibernate Search JPA 2.1 support has to have high ...

 
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

Replaying recorded requests...

Hi, I get the following when ODB starts in embedded mode: Replaying recorded requests... then I get something like 500 lines of recordset information. Here is the relevant part of the config file: Questions: 1) Why am I seeing this if I've set recording enabled to false? 2) I... mode: Replaying recorded requests... then I get something like 500 lines of recordset information. Here is the relevant part of the ... points: 1. the database directory has many files like this: mr.odb_nonclosed, mr_1.odb_nonclosed up to mr_10.odb_nonclosed ...

 
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

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 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

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 ...

 
issue

Feature Request: Subclassed PersistenceException for Type Not Found in DB Schema

Hi,... many other users, this isn’t a problem and we would like our application to behave like the query returned nothing.  We can’t implement this behavior ...