About clear

forum_thread

Data portability

Hi,   I've never used an OODB, I'm looking for a starting point but a recurrent concern is the Data Portability one. More clear: what options / strategies do I have to export / move my data to another  tool, if there is a need to?... but a recurrent concern is the Data Portability one. More clear: what options / strategies do I have to export / move my data to another ...

 
issue

@PrePersist not working correctly

I have a method to calculate some values before persisting to the database. So i annotated it with @PrePersist. If i merge an object the annotated method get's called but all members are on their default values. I only tried it with new objects. So merge get's an object with id = null and therefore shoud behave like persist. (I always use merge) If i set a breakpoint before the em.merge(..) call the object is ok. Inside the @PrePersist method all fields are cleared.  Bug Version: Priority: Normal Status: Fixed Replies: 1 Type:  Bug ...

 
issue

Issue with cascade delete & add/remove

Hi, Please see the attached sample project (important: classes need to be enhanced as done in the pom.xml file). ... we delete the Contact? Is that cascaded or do we need to clear the collection first, commit that and then remove the Contact? ...

 
forum_thread

InternalError on query of empty database

Hi, I have reasons for sometimes trying to query the database before anything has been created. The problem is the database throws a InternalException when that happens. Is it possible to throw something that identifies that that is the issue, say something like "MissingSchemaException", ie something that clearly shows its because no data of that type has been added? This just makes the exception catching cleaner. Thought thinking about it, it probably needs to be a JPA exception, maybe something like javax.persistence.EntityNotFoundException? #1 2011-07-21 01:39 Hi, I have reasons for sometimes trying to query the database before anything has been created. The probl ...

 
forum_thread

How to avoid NULL values on Embedded entities

Hi there. I'm new on this. trying to learn. I'm trying to make a value non nulleable. So, when I try to upload to the DB this field as null, it give me an error. I tried this, but it didn't work: ... if my english is not perfecto, just ask if i'm not clear   Edit: Sorry. Solved. The code was ...

 
forum_thread

Is it possible to commit only specific elements?

Hello, As stated above, I would like to know if it is possible to commit only specific elements, or at least update a single table, disregarding the other entities loaded in the persistency context? I have a complex hierarchy of intertwined objects. Currently I am clearing my persistency context, retrieving only the needed ones, creating new ones (which I want to commit), detaching the ones I've previously retrieved and finally committing. My context is big data and performance is an issue.      #1 2015-07-24 11:13 Hello, As stated above, I would like to know if it is possible to commit only specific elements, or at le ...

 
forum_thread

Roadmap - no progress - any plans - transparency?

Hi! I have been using ObjectDB for some time, and I'm relatively glad about it. What I'm not so satisfied is that there is no road map for ObjectDB. We see bug fixes and minor adjustments, which is great, but there's nothing about the future. We need to know in which direction ObjectDB is heading, and if it's heading anywhere or just staying in this state forever, as I see it. It would be nice to have more transparency about this topic. I know there are feature requests already made, but they seem to be ignored. ... So, my (and my company's) wish is to see a clear roadmap of ObjectDB. Besides increasing our confidence in your company, ...

 
forum_thread

Problem with byte arrays in JDO - ClassCastException

A bizarre ClassCastException is thrown if I attempt to obtain a byte array field as the result of a Query: Exception in thread "main" java.lang.ClassCastException: java.lang.Boolean cannot be cast to [B at spiffy.test.ObjectdbTest.main(ObjectdbTest.java:44) ... ( ) ; // Clear out existing objects pm. currentTransaction ( ) ...

 
forum_thread

Problem with byte arrays in JDO - internal exception

This code generates an internal exception: ... ( ) ; // Clear out existing objects pm. currentTransaction ( ) ...

 
api-jdo

getPersistenceManagerProxy()

Get a thread-safe instance of a proxy that dynamically binds on each method call to an instance of PersistenceManager.(Method of javax.jdo.PersistenceManagerFactory)