About not

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

An InternalException occurs when gets an result list

[ObjectDB 2.6.4_04] Unexpected exception (Error 990) Generated by Java HotSpot(TM) Client VM 1.8.0_51 (on Windows 7 6.1). Please report this error on http://www.objectdb.com/database/issue/new com.objectdb.o.InternalException: java.lang.NullPointerException: null java.lang.NullPointerException at com.objectdb.o.VAR.S(VAR.java:297) at com.objectdb.o.VAR.R(VAR.java:259) at com.objectdb.o.SYR.y(SYR.java:515) at com.objectdb.o.QRC.x(QRC.java:192) at com.objectdb.o.QRM.Vm(QRM.java:272)... The ArchitectureImpl was not known by the ObjectDB in our OSGi environment. The solution is we ...

 
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

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

Unexpected exception (Error 990)

I don't know how to reproduce this error, because I don't know what exactly did trigger it, but I thought that it might help if I report it. It's maybe because I removed 2 Integer fields from an Entity class. After restarting ObjectDB server, it didn't appear anymore. ... restarting the server , and unfortunately if this is not done then some strange exception as the one in your report may be thrown. ...

 
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

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

How to query for list of lists ?

Hi, I have a problem with constructing query, that gets only embedded list of integers from Entity. Here's the example : Query query = em.createQuery("SELECT i.filterDescription FROM Inspiration i"); List<List<Integer>> result = query.getResultList(); where Inspiration is like this : ... by support it only returns the first one as an Integer and not a list of all of them.   ...

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