ObjectDB Database Search
101-150 of 200 resultsDirty checking Hi, wondering if anyone knows the best way to detect which objects have been changed in ... ) some config settings to track changes to collections, e.g: http://www.objectdb.com/java/jpa/setting ... : Ideally I'd like to capture all objects that were changed after a commit, i.e: after the transaction | |
Updating Entities() from my PaygradeModify class - the change to the Paygrade is not shown when I go to view my Employee ... .setTable(); } else {Main.showErrorDialog();} } However, it is worth noting that the changes ... is loaded: all content is displayed accurately. However, once a change has been made to paygradeDB | |
openejb jpa jaas module.*; /** * Created with IntelliJ IDEA. * User: apple * Date: 31.01.2013 * Time: 06:01 * To change this template ... , Map options) { //To change body of implemented methods use File | Settings | File Templates. // TODO ... false; } } } catch (Exception e) { e.printStackTrace(); //To change body of catch statement use | |
Entity Update - Is the documentation up to date? transaction. If I subsequently begin and commit a transaction, all my changes seem to be merged ... the elements of that array without calling JDOHelper.makeDirty. These changes are also automatically ... and commit a transaction, all my changes seem to be merged automatically. The more conventional way | |
2.7.3_03 Erroneous "Attempt to modify a primary key of a managed object" a primary key of a managed object", but my application is not trying to change the primary key.  ... changed , just ObjectDB.) CBE CBE (P.S. When I submitted the forum post, I received an ObjectDB ... image that shows the error is attached.) CBE CBE This is probably caused by a change in version 2.7 | |
Exception after update of indices of Entity class Hello, I changed the index definition of an entity class from @Index()... to @Indices() and now I ... build. Could you please try opening the database after the index change with the most recent ... ) Best regards doppelrittberger Markus Ritter Thanks. Changing from @Index() ... to @Indices | |
Unexpected exception during open the database EmbeddedSystems The exception is thrown during index rebuild. It is strange that a schema change triggers an index ... . It is still unclear why an index rebuild is required due to class name change . Are you sure that this is the only schema change ? support Support Yes, the reason is the schema change for an entity | |
OptimisticLockException A cannot be aware to the change in process B automatically - an attempt to apply such automatic updates ... . what happens if locking version-check is set false? are the changes from process B lost if process ... - it is acceptable to present an error to the user if it tries to commit changes on a document | |
Setting temp directory location in ObjectDB HI, I am using ObjectDB and would to change the temp directory location wihtout using objectDB ... .class.getClassLoader()); I read in the ObjectDB website that we can change the temp directory using ... ;m_recoveryFile = new File(dirPath, ".$" + m_dbFile.getName() + "$"); So you can change the path by | |
Replication error on slave restart structural changes ) And "Failed to synchronize replicated database" appears regardless ... , could you please try changing the master recording configuration: support ... ) Make changes in application (now it has some transactions) 5) View db files over explorer | |
Schema migration - long to String Hi, I need to change field type in our model from long to String. After changing filed type in ... .AffiliateProduct(92):6613583 Is this a bug or there is some other way to change field type that I missed in ODB documentation? lwalkowski Lukasz Walkowski Changing a field from long to String should not require any | |
Beginners questions" which looks like this: public class Pojo { private transient boolean changed =false; public boolean isChanged(){ return changed ; } public void setChanged(boolean changed ){ this. changed = changed ; } ...as you can see, I tried to manage changes inside of the tables by the hand. So let's say: if I | |
Automatic schema evolution causes ArrayOutOfBoundsException - String iata Now I changed the List to List (Permission is an embeddable class), the fields name ... .EMImpl.commit(EMImpl.java:287) ~[objectdb-mvolution-2.6.9_05.jar:na] So it seems that both changes ... Markus Ritter You describe two schema changes : Changing the type of the permissions field from List | |
evictAll() behavior press F5, I want to pick up all the changes from the database. So, I call evictAll() in ... the persistence manager (L1) cache. But evictAll does not affect objects that have been changed by the current PersistenceManager - it is useful only to see changes that have been committed by other persistence | |
Dependency from enhanced classes to the objectDB library how we must change the ContextClassLoader that is works. All our experiments have failed ... changed (see post #5). The Stack Trace of the Persistence unit is not found exception: [ObjectDB 2.5.7 ... ObjectDB version the following changes have been applied to your project: Dependency on com.objectdb | |
Modifying something with Explorer -> app JPQL with Enum doesn't work anymore the change , close ObjectDB's connection, and run the project again. Important : do all that until a new ... with the web app. zmirc Mircea Chirac I managed to reproduce a similar situation by changing ... if you might have changed your enum, and also try your test with a clean odb file, when using the same | |
schema update procedure that it takes several restarts of the the server to complete the change . The issue is that there may be changes in many places. Each change appears to be applied as the class is first encountered ... and everything is fine until the next set of changes are encountered. This cycle may repeat several times | |
virtual servers and one file 8GB RAM with the parameter -Xmx8192m, this memory is also used completely, even a change to 16GB ... with the parameter -Xmx8192m, this memory is also used completely, even a change to 16GB is fully used ... the cache to 3800MB, adjusted parameter -Xmx8192m to 16384m. But unfortunately no change in speed | |
alter table;alter table add column ... This is automatic - just change your class (see Database Schema ... and activated in the background . support Support so, your strategy is changing class first ... and rebuild the database using the Object Doctor I'm not sure after index changing | |
Database Inconsistency or corruption update...), REVISION:=1, isPersisted:=true ... As you can see, I changed from "ProfileName 99 ... understand. After persisting the changes , the Id of the new Value entity was still nulll (See #1 ... . There is still something I don't understand. After persisting the changes , the Id of the new | |
lockfiles in client/server mode something? edit: i should note that changing temp= in /etc/objectdb/objectdb.conf does not help ... using the same directory for their temporary files. Changing the temporary directory path ... ). A better solution could be changing the permissions of the temporary directory ( /tmp/ObjectDB ) in a way | |
Failover from Master to Slave to the replicated database by changing connection url, i.e. by connecting to the replicated database using ... to the replicated database url, switching the master and slave roles (in order to replicate changes in ... . support Support For support: do you have an idea how change the urls when in a Java EE JTA | |
Merge Issue: Attempt to reuse an existing primary key value we can confirm that a change in the behavior of merge in build 2.4.6_17 affects your test case. The change ... part of the change in the list of the A instance. This may affect some existing applications ... changed it. This is closer to the original test: import javax.persistence.*; import org.junit.Assert | |
Possible cause for "Enhancement of type ... is old and cannot be used", but that enhancement cannot be used because of a change that affects that class, which occurred ... been changed since build 2.6.3_04, but of course it may still be affected indirectly by some other change . Please try to isolate the error. It may be related to a specific entity hierarchy or a specific | |
Optimistic locking: prevent version increment on entity collection attribute (i.e. the collection is defined as a mapped by) then adding and removing entities should not change ... seem to have some issues. I have changed my classes to have a OneTomany mappedBy relationship as follows ... ), added EAGER fetch to the collection no change . I have tried to persist the document first | |
Mismatch client-server protocol prefix. Try also to consider any change in the migration of code that could cause it. More information ... ? support Support No wed didn't change anything in our DAOs. This is the code which raises the Exception ... Support Do I have to make this change on the server? How does this affect performance | |
Join query problem with new statetment execution. This might be caused by a schema change that is not fully supported. For example - changing ... were from the beginning tagged as @Entity and I don't think it was ever changed . I've changed this query ... earlier post, that changing query to: select new InspirationsPerSupplierResult(insp.name, p.name | |
jakarta.persistence.EntityTransaction.commit() Jakarta Persistence (JPA) Method in jakarta.persistence.EntityTransaction void commit() Commit the current resource transaction, writing any unflushed changes to the database. Throws: IllegalStateException - if EntityTransaction.isActive is false. RollbackException - if the commit fails. Since: Jakarta Persistence (JPA) 1.0 | |
jakarta.persistence.EntityManager.refresh(Object) Jakarta Persistence (JPA) Method in jakarta.persistence.EntityManager void refresh ( Object entity ) Refresh the state of the given managed entity instance from the database, overwriting unflushed changes made to the entity, if any. This operation cascades to every entity related by | |
jakarta.persistence.EntityManager.refresh(Object,Map) Jakarta Persistence (JPA) Method in jakarta.persistence.EntityManager void refresh ( Object entity , Map properties ) Refresh the state of the given managed entity instance from the database, using the specified properties, and overwriting unflushed changes | |
jakarta.persistence.EntityManager.refresh(Object,LockModeType) Jakarta Persistence (JPA) Method in jakarta.persistence.EntityManager void refresh ( Object entity , LockModeType lockMode ) Refresh the state of the given managed entity instance from the database, overwriting unflushed changes made to the entity, if any, and obtain | |
jakarta.persistence.EntityManager.refresh(Object,LockModeType,Map) Jakarta Persistence (JPA) Method in jakarta.persistence.EntityManager void refresh ( Object entity , LockModeType lockMode , Map properties ) Refresh the state of the given managed entity instance from the database, overwriting unflushed changes | |
jakarta.persistence.EntityManager.refresh(Object,RefreshOption...) Jakarta Persistence (JPA) Method in jakarta.persistence.EntityManager void refresh ( Object entity , RefreshOption... options ) Refresh the state of the given managed entity instance from the database, using the specified options , overwriting changes made to the entity | |
jakarta.persistence.EntityManager.clear() Jakarta Persistence (JPA) Method in jakarta.persistence.EntityManager void clear() Clear the persistence context, causing all managed entities to become detached. Changes made to entities that have not already been flushed to the database will never be made persistent. Since: Jakarta Persistence (JPA) 1.0 | |
jakarta.persistence.EntityManager.detach(Object) Jakarta Persistence (JPA) Method in jakarta.persistence.EntityManager void detach ( Object entity ) Evict the given managed or removed entity from the persistence context, causing the entity to become immediately detached. Unflushed changes made to the entity, if any, including | |
jakarta.persistence.EntityManager.getProperties() Jakarta Persistence (JPA) Method in jakarta.persistence.EntityManager Map getProperties() The properties and hints and their associated values which are in effect for this entity manager. Modifying the contents of the returned map does not change the configuration in effect. Returns: a map | |
jakarta.persistence.EntityManager.createNativeQuery(String,Class) Jakarta Persistence (JPA) Method in jakarta.persistence.EntityManager Query createNativeQuery ( String sqlString , Class resultClass ) Create an instance of Query for executing a native SQL query. In the next release of this API, the return type of this method will change | |
jakarta.persistence.EntityManager.flush() Jakarta Persistence (JPA) Method in jakarta.persistence.EntityManager void flush() Synchronize changes held in the persistence context to the underlying database. Throws: PersistenceException - if the flush fails. TransactionRequiredException - if there is no transaction or if the entity manager | |
jakarta.persistence.criteria.Expression.as(Class) Jakarta Persistence (JPA) Method in jakarta.persistence.criteria.Expression Expression as ( Class type ) Perform a typecast upon the expression, returning a new expression object. Unlike Expression.cast , this method does not cause type conversion: the runtime type is not changed | |
each 1-2 days objects on some objectdb level lock/block each other each 1-2 days we have the situation that our system changes to a completely underperforming mode ... it is not a deadlock but a very short lock that is not expected to cause issues. The change in ... ? Anything that was changed recently (including usage volume)? support Support - CPU Usage (24 cores | |
Removed entities can be found by query in the same transaction the database and the change was flushed but not committed yet then the database maintains ... ._04 but not in 2.7.4_03? In that case we can investigate the exact changes between these two builds ... issues. We will check. support Support We may have to reverse the changes of build 2.7.4_04 | |
missing merger that need to save changes to objects are not working any more We’ll try to download the corrupt database ... Aerospace changed to a desaster mode regarding our product Sorry but we still cannot post in ... the log? Have you restarted the system after it happened? Did it change anything? support Support | |
boolean field flips after schema update (in class) of another field change . This is a serious issue because the related fields were not touched (no change of name or anything) and values in the database changed . We did not have this in our testing and stating ... had many previous schema evolution changes (you might have a longer history of schema changes in | |
Internal Exception and Index Problems". Try to change the userName attribute of this entry then the following error occurs: Unexpected ... class), and due to any inheritance change (such as adding, removing or changing the super class). You can avoid this issue by restarting the ObjectDB server after every such schema change . Future | |
combined index not used. specific index or component that has to be used) may be more stable and less affected by small changes in the query or in ObjectDB. The Explorer includes changes that can help in examining different query ... additional statistic information. To benefit from these changes ObjectDB must collect that statistics | |
Once served to JSF page via @EJB query bean, many list fields are null (but same query ok after fresh persist in @PostConstruct). @Stateful // Change 1 - EXTENDED requires a Stateful session bean public class TestQuery { @PersistenceContext(type=PersistenceContextType.EXTENDED) // change 2 private ... change hundreds or even thousands of lists to FetchType.EAGER as a workaround just to perform | |
queries under 2.7.6_4 significantly slower than under 2.7.6. is there a possibility to switch of the new feature ? hgzwicker Hans-Georg Zwicker There are several changes ... : The change in ObjectDB that affects this specific query was introduced in build 2.7.6_01 ... a system property to disable the change in version 2.7.6_01, as a temporary solution, if you think | |
InternalException is possible as a result of schema change , in which id fields are removed. Notice that changing ... When you say schema change do you mean changing the code for the entity objects and using ... file) and the error occurred mid-run so there is no opportunity for code change . I've also found | |
JQL-Update Queries fails with activated L2-Cache-Query and fetching Entities afterwards from database. Expected result: Getting changed Entities from database - Actual result: No changes are visble. Scenario 2 : Disabled L2 Cache, updating elements ... . Expected result: Getting changed Entities from database - Actual result: Everything ok | |
Query fails with failed to read;(logger "store.file", level fatal, so probably no need for any configuration change if fatal logging ... have the original exception since we changed to the new version on 20180811 but there is a log ... also to change database content, i.e. to write to the database? Build 2.7.5_05 included in addition |