About find

forum_thread

Nexus proxy repository with ObjectDB

I'm trying to setup a proxy repository in my local Nexus to retrieve artifacts from objectdb. Unfortunately I'm not able to get it configured properly and I'm not sure what is wrong. My repository config: ... the ObjectDB Maven repository works well. If you find something that is missing and that by adding it we may be able to support ...

 
issue

Server NPE

I'm getting the following NPE when attempting to persist an object to a server based database: ... solves the problem. Thanks for your pointer which helped find it. edit ...

 
forum_thread

Spring Transactions (@Transactional) within ObjectDB

Hi, We are using OBD with Spring and transactions are managed by Spring. Our spring service interfaces take list of objects and persist them and the interface service is marked as @Transactional. We iterate through the list apply business validations and persist them one by one in a loop. ( Using Spring Data) We have noticed that in a loop 1st object is persisted and then we if lookup the same object we don't get it back on lookup. ... in persistence.xml in my case and I am not able to find out the exact name in case of ObjectDB IN case of hibernate I can ...

 
forum_thread

Updating existing persistence entries

I have stored some instances of MyObject via em.persist(myObjectInstance); I can fetch them and bind them to a kind of property editor in my app (it simply calls the setters to reflect gui editing actions). When I try to persist a object later on, I get an error like com.objectdb.o.UserException: Attempt to reuse an existing primary key value which makes sense to me but I'm missing a em.update() method. #1 2012-12-07 19:29 I have stored some instances of MyObject via em.persist(myObjectInstance); I can fetch them and bind them ...

 
issue

Schema-Update: Deactivation of automatic entity class removing and introduction of a new class remove in the schema config

Hello, in our application we use ObjectDB in embedded mode as part of the Profile that can be stored and opened by our customers. Our application is an eclipse RCP application with a domain-driven design. The product can be installed in different configurations (in other words with more or less PlugIns). This presents us with further challenges when we have made changes to DB schema for new versions. ... We tried to reproduce the issue and find out that we get the exception only if we didn't enhanced the classes. ...

 
forum_thread

NullPointerException in ENH.g(ENH.java:401)

Hi, I experience a NullPointerException inside the objectdb code with the following stacktrace: #1 2016-09-07 12:20 Hi, I experience a NullPointerException inside the objectdb code with the following stacktrace: Exc ...

 
forum_thread

Lazy Init / Eager / Join Fetch collection strategy ? What to choose ?

Hello, I'm doing some tests to choose the best collection fetch strategy. I have entities with many lazy collections and i don't want to load them all. In JPA / Hibernate world it exist some tests demonstrating how to choose the best strategy. For example : http://zeroturnaround.com/rebellabs/how-to-use-jpa-correctly-to-avoid-complaints-of-a-slow-application/ In this article,join fetch seems to be the right choice. What about ObjectDb ? The implementation is totally different. ... fully supported by ObjectDB but not documented (you can find more details in the JDO specification). This ability became ...

 
forum_thread

How to change properties in urls2.xml?

Hello, I am using objectdb in an embedded case with network private access to each database. I see it exists a file name "urls2.xml". <url><main>/var/lib/tomcat7/db/myDb.odb;user=admin;password=admin</main><alt>objectdb://127.0.0.1:38059/;user=$code;password=a2e54ea3-d889-41a7-953c-dabc42877742</alt></url> This file is autogenerated by objectdb. And it describes the locals databases url and their port / user / password properties. ... released yet (and it is not documented) but you might find it in a forum discussion. You should be able to control the port ...

 
forum_thread

Remove a modified entity cause an optimistic lock exception

Hello, the following examples load and modify an entity, and load and remove the same entity. The first example 'SetAndRemoveIssue.java' is a simple java program which executes without errors. The second example is an OSGi program which fails with an optimistic lock exception. Both examples are equivalent, please execute SetAndRemoveIssue.java (in the OSGi example as a plugin-test). Can you explain the optimistic lock exception? ... ( ) ; MyEntity e = em. find ( MyEntity. class , 1 ) ; e. ...

 
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: ... Can anyone help me with any suggestion or to find a solution? Thanks in advance ...