About WHERE

forum_thread

Failed to enhance dynamic type

Hi, We are trying to enhance a class with OSGI Weaver using the JEnhancer.THIS instance as a class transformer. Works very well except for some entities, i.e. we do have an entity which has: @Override public String getQubletHeadingMain(LanguageContext context) This is a simple implementation of our custom interface and should of course, NOT be enhanced. Yet, we get an error due enhancing: Failed to generate dynamic type com.quasado.galaxy.foundation.api.language.LanguageContext ... ObjectDB can work around by generating synthetic classes where classes are missing. I don't know why this process fails in your ...

 
forum_thread

Removing an entity throws exception

Hi all, I'm testing ObjectDB for my project, but I have troubles with it. At this time I'm not able to remove customer entity, when it's read by a query (it's attached), it throws this exception: Exception in thread "AWT-EventQueue-0" java.lang.RuntimeException: com.objectdb.o._RollbackException: Failed to commit transaction: 51 ... ... result with 2.2.5) What does the exception mean? Where is the mistake? Thank you Michael ...

 
forum_thread

Database size is much larger than expected (x2)

I store images into objectdb. The schema is : <URI>::=(<sUrl>, <cMark>, <iSize>, <baBody>, <id>) <sUrl>::=String <cMark>::=char <iSize>::=int <baBody>::=byte[] <id>::=@ID So simple a class will fail after 155,648 insertions with -Xmx1432m, ... Since you didn't publish your classes it is unknown where is exactly the problem, but apparently you store the same byte[] more ... I just em.persist(obj), and the obj has the same fields, where is the second copy? If you have time to follow my codes, then ...

 
forum_thread

Grouping by date()

Hi, For some time now we can use date and time function in queries to extract part of date time (from documentation): YEAR({d '2011-12-31'}) is evaluated to 2011. MONTH({d '2011-12-31'}) is evaluated to 12. DAY({d '2011-12-31'}) is evaluated to 31. HOUR({t '23:59:00'}) is evaluated to 23. MINUTE({t '23:59:00'}) is evaluated to 59. SECOND({t '23:59:00'}) is evaluated to 0. ... BY hour ( ov . created ) ASC where ov.created is normal Date() field return only hours from 0 to 11 (check ...

 
forum_thread

Failed to read the value of field using reflection

I have recently encountered an issue with reading objects: ... store characters on player, and Map<Stat, Integer> (where Stat is an Enum) to store stats on character. I am using the latest ...

 
forum_thread

Tomcat + JPA Problem

Hi i tried to setup the example from your webpage (jpa - Tomcat with Ecplipse) and i always get this Error: [ObjectDB 2.1.0] class "javax.persistence.Entity"'s signer information does not match signer information of other classes in the same package   ... how to use the explorer with a Tomcat Application where can i find the db-files? ...

 
forum_thread

Geospatial functions

Hi, is it possible to implement geospatial functions (e.g. calculating distance between too points given latitude/longitude) ?Normally you would calculate the distance like: ... "SELECT l FROM Location l " + "WHERE l.distance((double):latitude, (double):longitude) < :radius" , ...

 
issue

Error 990 when querying a class with persistence-capable-superclass

[ObjectDB 2.4.7_07] Unexpected exception (Error 990) Generated by Java HotSpot(TM) Server VM 1.7.0_10 (on Linux 3.2.0-39-generic-pae). Please report this error on http://www.objectdb.com/database/issue/new com.objectdb.o.InternalException: null com.objectdb.o.InternalException at com.objectdb.o.InternalException.f(InternalException.java:236) at com.objectdb.o.STA.K(STA.java:339) at com.objectdb.o.ENT.D(ENT.java:533) at com.objectdb.o.ENT.M(ENT.java:681) at com.objectdb.o.LDR.F(LDR.java:589) at com.objectdb.o.LDR.E(LDR.java:466) ... fails with the same error is a lot of work. Looking at where the exception is being thrown, can you give me any clues as to what is ...

 
release

2.5.5

... NullPointerException when using AND TRUE in WHERE clause (issue #201). Fixed an exception when accessing an ...

 
forum_thread

Activation Issue

Hi! We now reached the 10 class limit of ObjectDB. Our license is activated and if I run objectdb activation I get true back. When I start our webapp although I get the following error: ... Activation is required only where the database file (odb file) is managed, which is usually only the server ...