About not

manual

JPA Named Queries

Explains how to define and how to run JPA named queries.... and less so when using ObjectDB, this alternative is not covered in this manual. Using Named Queries at Runtime ...

 
issue

InternalException caused by OOM: Metaspace

Our java server app using objectDB threw this mistake. Looks like due to OutOfMemory exception, but the app was running with -Xmx12G and before the mistake there was used 1,6G from that heap. Although Metaspace can happen independently on the heap usage I believe. Stacktrace follows: ... indicates out of memory situation in Java 8 Metaspace (not the JVM heap) when ObjectDB is trying to generate a dynamic wrapper class ...

 
forum_thread

Problems using Maven Repo

I've worked around this by downloading "manually" but I don't seem to be able to resolve objectdb Maven dependency automatically - have the relevant repository entry etc. in my POM, Maven doesn't seem to be able to find anything. Wondering if there are some operational problems or if I should return to scratching my head. Many thanks ... This new post may not be related to the original post (except that both discuss using Maven). ...

 
forum_thread

Double persist of Entity field with Cascade.ALL

I am building a JavaEE application using Netbeans 7.0.1, Glassfish 3.1 and ObjectDB 2.3.3. I have a Book class with entity field Chapter which has a CascadeType.ALL property. The Book fields are as follows: @Id @GeneratedValue(strategy = GenerationType.AUTO) private Long id; private String bookTitle; @OneToMany(cascade= CascadeType.ALL, fetch= FetchType.EAGER) private List<Chapter> chapters; The Chapter fields are as follows: ... in the posting instructions . If this is not possible (for example because the problem happens only in a Java EE ...

 
forum_thread

Groovy JPA example

I've been using Groovy with ObjectDb, just thought I'd post a short snippet to show how easy this is to do. The following script (which is one import and one statement) will open a database, run a query and print some results. --------------------------------------------------------------- import javax.persistence.Persistence ... could be a nice to have feature, but it is currently not in a high priority on our road map. What do you mean by making a ...

 
forum_thread

Modifier operations

Hi, Today I was reading about different NoSQL databases. One of those database - MongoDB - has a very nice feature, especially for web applications - modifier operations. The whole trick for those operations is to change some value in object without pulling this object from database. So for example we have class: public class WebVisit { public String url; // key public int visitsCount; } As for now I have to pull this class from database: ... If you try it - please report if it works because it has not been tested yet. ObjectDB Support ObjectDB - ...

 
forum_thread

Maven Enhancement with OSGi Plugins

Hello, I've an OSGi environment and try to enhance Classes with Maven as it is described in your tutorials. Now I get ClassNotFoundException's with some entity classes, which contains enums from other plugins. Is there a way to include classes in enhancement process? Thanks for your help. ... in an OSGi environment in which some of the classes are not accessible by the default class loader, consider enhancement as part of the ...

 
forum_thread

Issue with compile time enhancement

I have an entity library which I have integrated build time enhancement in.  The enhancer reports it has processed all of my persistent classes.  When I attempt to run a Bootstrap process with this library I get the error shown below.  The entity referenced in the error (Terms) is listed as having been enhanced. I am running with ObjectDB in embedded mode via a reference to a persistence unit also shown below. Please let me know if you need any additional information to diagnose this problem. Thanks, Joel ... class without its subclasses. Enhancement is not required by ObjectDB (although it can improve performance and it is highly ...

 
forum_thread

LEFT JOIN FETCH over empty embedded collection returns no results

First of all, thank you for promptly implementing JOIN FETCH over nested paths in response to my inquiry a few months ago. However, I have run into one problem: if an embedded collection is empty, but I attempt to LEFT JOIN FETCH all the members of a collection within a (non-existent) member of the first collection, the result of the overall query is an empty set. To use the example from my original post: @Embeddable class A { String val; };   ... . val WHERE id = :id; since B instances do not include a val field (there is also an invalid ; symbol at the end of ...

 
forum_thread

Problem with log file in an embedded db with netbeans platform application

Hello, I'm starting a new desktop application built with netbeans platform 7 and objectdb/JPA as embedded db (version 2.3). I haven't had any problem with the domain class library project, but running the netbeans platform application that use the same domain class library an error occurs that crash the application. This is part of the stack trace: ... has a wrong file name (this starts with "file:" and ":" is not allowed in ntfs filesystem). I can't understand if the problem ...