About like

forum_thread

Merge on detached entities

Hello, it is possible to merge detached entities? There are some attached entities which load from the database. The transaction is finished and the entities become detached. In a new transaction the fields of the detached entities will be changed and a merge by em.merge(entity) will be saved the entities. Can this works correctly? How are the rules of the merge process? Do the changed fields of the detached entity overwrite the fields in the database? Also changed fields which are set to null? ... fine. Just some had this defect. What we would like to know are the exact rules how to attach detached entities when the ...

 
forum_thread

ObectDb 2.3.6 in OSGi environment

Hello, I'm trying to use ObjectDb within OSGi bundles. I have one bundle for db accens which uses ObjectDb and another bundle which includes the POJO models. Everytime I start in plugin evironement i get an PersistenceException, because my POJO not found. If try the same test in normal Java environment everthing works fine. Can you please advice? Thx Peter ... use a persistence.xml! The stacktrace looks like this: [ObjectDB 2.3.6] javax.persistence.PersistenceException Type ...

 
manual

JPA Persistable Types

Explains how JPA manages types, including entity classes, embeddable classes, primitive types, wrappers, string, date, enum, collections and maps.... Aside from these constraints an entity class is like any other Java class. It can extend either another entity class or a ...

 
forum_thread

Feature Request: Improved ObjectDB Explorer

ObjectDB explorer is mainly designed as database viewer, not editor. However, I think it can be improved to function as a capable editor also, and I think this will make ObjectDB an even better product. ... mac client - some work on the GUI: most icons look like they are from win98, and the solid colors for the tables and trees look ...

 
forum_thread

Update is ignored by ObjectDB

Hi! Sorry for my bad english skills. When I execute fulfilOrder, only Order entity is updated in the database, and User entity remains modified only in code, even if I go: user = smdb.find(User.class, user.id); In this source highlighted lines modifying entity, but not the database. ... from other classes. "should not" is more like "better not", and not "disallowed". My choice is reasonable: Java ...

 
issue

Database File Encryption

ObjectDB supports encryption of client-server communication over the network using SSL. Encryption of data in database files is less commonly used, since it slows the database, and when necessary, external encryption is possible (e.g. at the operating system level). Still, this might be useful for some applications.... pretty high penalty. My suggestions would be something like the following:   @Encrypt("blowfish","some_public_key") ...

 
forum_thread

Run out of memory

Hi, I've been looking into ObjectDB for our use, where everything has been great apart from I'm stuck on the following problem.   I am trying to load a large file (> 1GB), process certain information and store it back in the database to access / modify later. I require to be able to rollback changes as well, where there can be massive amount of changes.   ... If anyone can see what is going wrong I would really like to know. I am running the current version 2.2.7_04. Cheers, ...

 
forum_thread

Broken @ManyToOne reference

Hi, I have objects of type A belonging to objects of type B, defined as follows: @MappedSuperclass public abstract class A {   @Id   @ManyToOne(fetch = FetchType.EAGER, cascade=CascadeType.ALL, optional=false)   private B b;   @Id   @Column(length = 36)   private String stringId; } @MappedSuperclass public abstract class B {   @Id   private String name; } ... null in the prn field . The output shall look like: Parent reference written : testobjectdb. Parent @ ...

 
manual

CRUD Database Operations with JPA

Shows how to use Java/JPA to store, retrieve, update & delete.... familiar. JPQL, the JPA query language, supports a SQL like syntax. This has a couple of significant advantages. First, you get the ...

 
forum_thread

Remove not working

Hello! We have a strange problem. ... 20:27 Looks like ignoreCache set to false is still ignored after the above fix.  So ... fail on the second access (because it ignored the cache, like it was told to do).  If I manually set ignoreCache=false to correct ...