About WRITE

forum_thread

Problem on JPA Merge Entity.

Hello, I have a problem with the EntityManager.merge() function. I set a property value of an entity (statement) with an other entity (newSingleConstraint). newSingleValue is already persisted. I do this myself (no use of cascade because sometimes the newSingleValue is already in database).   The statement update don't throw exception. And when i try to reload statement the value i have set before is a null value. I check with the Explorer, the statement has a null value on the property and the newSingleValue is present.... that the same EntityManager is used. If you can write and upload a simple test program that demonstrates the problem it could ...

 
forum_thread

Complex Schema Upgrade not working

Hello, We're trying to upgrade the DB-Schema. Simplied our source/original Schema/Class-Hierarchy looked like this: class contact.Contact class customer.Customer extends contact.Contact class member.Member extends customer.Customer We have database records within each class type (Contact, Customer and Member). ... to be converted to Address instances, you will have to write some conversion code. ObjectDB Support ...

 
forum_thread

pesimistic Lock semantic

Hi   I have tested pesimistic lock and the result was for me unexpected. In the first transaction i modified one object and in the second transaction i wanted to the same and  I got an exceptopn that lock could not be granted, quite nice but in that moment I wanted commit the first transaction and I also got lock exception. this the test:   public void testPesimisticLock() {   PersistenceManager pm1 = null;   PersistenceManager pm2 = null; ... With enhancement - the picture will be locked for WRITE by pm1 and exception is expected when pm2 tries to read the same ...

 
forum_thread

Removing objects where ManyToMany relationships exist

Consider you have an entity Entity with the following unidirectional relationship: @ManyToMany private Set<OtherEntity> setOfOtherEntities; public Set<OtherEntity> getOtherEntities() {     if (setOfOtherEntities == null) {       setOfOtherEntities = new TreeSet<OtherEntity>();     }     return setOfOtherEntities;   } ... help. Two short follow-up questions: You write that trying to access a removed object via a broken reference throws ...

 
forum_thread

migration path from JPA / Hibernate

Hi. Is there a conversion tool or documentation that is of help when migrating an existing JPA solution to ObjectDB? Any recommendations or known pitfalls when it comes to ...   #1 2011-03-30 13:10 Hi. Is there a conversion tool or documentation that is of help when migrating an existing JP ...

 
issue

Close() Method of EMF throwing "PersistenceException: Connection is closed" on first attempt to close.

We encountered an issue that caused an outage last Friday on multiple ObjectDb server instances. Bug Version: 2.6.9 Priority: High Status: Closed Replies: 1 Type:  Bug ...

 
forum_thread

Mapped By Fetch is very Slow

Well ! I think i pointed out a HUGE performance issue with mapped-by attribute (yeah again :( ). Here is the test case : 1- Create 100 000 entities with for each 1 entity with @OneToOne(mappedBy attribute) 2- Retrieve only 10 000 for testing 3- Wait ... On my AMD FX 8350, it took 60s Now, go the MyEntity class and remove "mapped-by". You obtain 1 second max of query fetch. ... begin ( ) ; }   // Write 100 000 entities with 1 child for each for ( int i = ...

 
issue

Unable to stop server after starting in SSL mode

ObjectDB server starts & stops fine in non-SSL mode using start & stop shell scripts. ObjectDB server starts fine in SSL mode using start script but throws error and does not stop using stop shell script. Non-SSL mode server start/stop output: ObjectDB Server started on port 7032. ObjectDB Server stopped. SSL mode server start output: ObjectDB Server (SSL) started on port 7032. SSL mode server stop output: ... sync = "false" path = "." mode = "write" /> <locking version-check = "true" /> ...

 
forum_thread

Pre-detach loading: retrieval by navigation not working in if statement

objectdb-2.6.3_04 JDK1.7 VM option at runtime: -javaagent:lib/objectdb.jar Experimental mode: objectdb.temp.no-detach NOT USED ... (which seems to use the internal compiler to write .sig files, rather than .class files, to the NetBeans cache, and ... that you can set (on your web application) in order to write enhanced classes  to files: -Dobjectdb.code.output= ... that you can set (on your web application) in order to write enhanced classes  to files: ...

 
forum_thread

Can't modify @EmbeddedId in ObjectDB Explorer

Hi! There is entity Journal with @EmbeddedId JournalId. Id's content can't be seen/modified from ObjectDB Explorer from its class. Ok, I get this. It's an @EmbeddedId, so it should depend only on its parent. Problem: id's content can't be modified through its parent neither. Scenario: open db in ObjectDB Explorer, open entity Journal, expand the id, try to modify date/id, save, then refresh data / reopen db, and you'll see that it wasn't modified. Any solutions? #1 2013-05-31 16:15 Hi! There is entity Journal with @EmbeddedId JournalId. Id's content can't be seen/modified from ...