About or

  • Search for either of the two terms with uppercase OR. For example, cats OR dogs.
forum_thread

NullpointerException when execute a merge

How can we analyze the cause of an "Unexpected internal exception"?   We create an object tree that is persisted with "merge()". Then we want to persist “merge()” an new object of a different type.   [we use ObjectDb 2.6.0_3] ... Cancel To post a reply and/or subscribe to update notifications - please login . ...

 
issue

Lazy loading of mapped by (inverse) singular references

... Cancel To post a reply and/or subscribe to update notifications - please login . ...

 
issue

Resource leaking via a rogue Shutdown Hook

A shutdown hook is registered upon ObjectDB initialisation. The hook is loaded from the web application's class loader. When the application is stopped (not the server, just the application) the hook is not cleared. This leads to web-application class-loader leak, that results in huge resource loss, and eventually in an OOME. Offending class: com.objectdb.o.MSF$1 (anonymous subclass of java.lang.Thread) Name of the Thread/Hook: ODB-FileCloser Thread is registered from the com.objectdb.o.MSF static initialiser (<clinit>). ... Cancel To post a reply and/or subscribe to update notifications - please login . ...

 
issue

@Enumerated(EnumType.STRING) annotation inhibits proper execution of IN expressions.

When the following annotation is present on an enum type entity field: @Enumerated(EnumType.STRING) Queries using JPQL IN expressions on this field won't work correctly anymore. This issue has been described in forum post 681 (JPA JPQL WHERE clause for IN :variable not working if variable is a list of Enums). See also the attached test case (play with adding and removing the Enumerated annotation). Best regards, and thank you for this great piece of work! ... Cancel To post a reply and/or subscribe to update notifications - please login . ...

 
forum_thread

Multi part paths in a composite index must have the same length

Hi, I am trying to create some index in a DB - but I get an exception when i try to commit. Exception in thread "main" [ObjectDB 2.6.0_01] javax.persistence.PersistenceException Invalid index path 'tStamp.value / instrumentId' in type Entities.OrderBookNew (error 328) at com.objectdb.jpa.EMImpl.createQuery(EMImpl.java:958)   Here is how the class of the persisted object looks like ... Cancel To post a reply and/or subscribe to update notifications - please login . ...

 
issue

Issue with full cross joins

hi, There seems to be an issue with full cross joins & maps. This query: ... Cancel To post a reply and/or subscribe to update notifications - please login . ...

 
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. ... Cancel To post a reply and/or subscribe to update notifications - please login . ...

 
forum_thread

Deploy ObjectDB in WildFly 10

Hi, I'm currently evaluating ObjectDB and try to deploy my project in WildFly 10. I've installed ObjectDB in the modules directory and added a persistence.xml file: ... Cancel To post a reply and/or subscribe to update notifications - please login . ...

 
issue

UPDATE query cannot set a new field after schema change

I've added a new property/field to one of my objects and want to set the value of this (boolean) property to false for all existing entities in the DB. I tried to execute an update statement with the Explorer tool. The statement ends and tells me that 1000 entities have been updated. I then save the changes to the DB via file->save. But when I execute a select on the DB I see that the field is still "null" for all instances. How do I initialize the field? ... Cancel To post a reply and/or subscribe to update notifications - please login . ...

 
issue

Wrong type on SUM function

Hello, I have a problem when I run this aggregation query: ... Cancel To post a reply and/or subscribe to update notifications - please login . ...