ObjectDB Database Search
1-50 of 158 resultsOnline Backup backups , which let you back up a database while it is in use. This feature is useful for applications that require continuous service (24/7), such as most web applications. Starting an online backup You can start an online backup by executing a special query on an EntityManager ( em ) instance | |
Database Transaction Replayer tool can apply recorded database operations to a matching database backup , if available ... of files: Backup files, with names in the format .odb Recording files, with names in the format .odr A backup file is a standard ObjectDB database file that reflects the state of the database at the end | |
Failed to generate dynamic type objectdb.java.util.ArrayList.objectdb.o.InternalException: com.objectdb.o.UserException: Failed to generate dynamic type objectdb.java.util.ArrayList com.objectdb.o.UserException: Failed to generate dynamic type objectdb.java.util ... .objectdb.o.UserException: Failed to generate dynamic type objectdb.java.util.HashSet com.objectdb.o | |
Bad Backups – Null Error when issuing simple query on backup via ObjectDB Explorer I have attempted to access two different backups that were taken by ObjectDB’s internal backup API ... the relevant content, i.e. the History instances. Could you please try: opening the backup files using ... specific backups ? Are other similar backups OK? Does it happen only in the Explorer or | |
Failed to enhance dynamic type to generate dynamic type com.quasado.galaxy.foundation.api.language.LanguageContext I am curious why he does even try to generate dynamic type?? Can he simply ignore such things and enhance ... to overcome this by generating a dynamic synthetic type. Usually it succeed but in some cases it fails | |
How to create dynamic Entity class. Hello, I was creating dynamic object to store data inside database. I am using javassist API to create dynamic class. Here i have written some code which is create dynamic class as well as object. Class and object successfully created. And insert data also now problem | |
JPA Query API because it introduces the Country class to ObjectDB. Dynamic JPQL, Criteria API, and named queries In ... dynamic query construction because you can build the query string dynamically at run time. The JPA Criteria API provides an alternative way to build dynamic queries. It uses Java objects that represent | |
com.objectdb.o.UserException: Failed to generate dynamic type.UserException: Failed to generate dynamic type Entities.AbstractLong at com.objectdb.o.MSG.d(MSG.java:75 ... more [ObjectDB 2.6.1_05] Failed to generate dynamic type Entities.AbstractLong (error 361) The class | |
Failed to generate dynamic type Hi I was trying to enhance some of my classes and I got an error : Failed to generate dynamic type com.package.RootContainer (error 361) It seems that all dependent classes are on the classpath , so what is missing or how to recognize what is wrong with that class ?? thanks in | |
user defined backup target Dear objectdb Team 1. I could not find a way, to declare the name of the backup -file ... the database - file: Query backupQuery = em.createQuery("objectdb backup "); backupQuery.setParameter("target", new java.io.File("c:\\ backup ")); backupQuery.getSingleResult(); The code above, for instance | |
Incremental online backup Hello, Are there plans for ObjectDB to handle incremental online backups , where a backup does not create a whole new copy of the DB, but "updates" an existing backup ? This behavior would make backups much faster as only a portion of the data would need to be copied. Such a feature would also allow | |
Failed to read DB file while online backup is running and also write) failed with an exception during an online backup of the same DB file was running and was close ... related anymore to running of online backups . Maybe some new bug was added to the code ... (JdoQuery.java:748) jakab Gergely Jakab Build 2.6.2_05 changed only online backup code | |
Catching exceptions from online backup Hello, I have a request for improvement in the area of backuping . For catching the exceptions during online backups , I am using the solution suggested in the post 2786 Well not exactly ... we would like } ) ; // Wait until the backup is completed. try { backupThread | |
Online backup problem Hi, We are trying to create a servlet that performs database online backup . Unfortunately, even though no exception is thrown, backup files aren't created. When I turn on DEBUG logging in ODB, I ... ) and it doesn't seem to be related to the online backup . Please post the code that you are using to run | |
Online Backup in client-server mode Hello, we have issue with online- backup when using client-server mode. It seems, that it is working the following way. When we run the backup , server is creating tmp file for whole database ... . Can it be improved? In my opinion the server proces should handle whole backup proces and do it as | |
Backup file always bigger than live db file I use em.createQuery("objectdb backup ", Thread.class); to backup hourly. And the backup file is always getting bigger even if the db file is not getting bigger. Why is that? Trianglehead Json Error Does the database file itself remain the same size? Is the backup size different | |
JPA Criteria API Queries dynamic queries whose structure is known only at runtime. JPA Criteria API vs. JPQL JPQL queries ... queries. The Criteria API is generally better for dynamic queries that are built at runtime. For example, building a dynamic query based on a form with many optional fields is cleaner | |
Online backup with JDO Hi, I would like to try the Online Backup tool as I am making backups up to now with the not ... question is about starting the online backup . The manual suggests starting it via the EntityManager with the code em.createQuery("objectdb backup ").getSingleResult(); But how do I start it if I am using | |
Backup I have tried using online back to test the backup feature. It's been hour and I still don't see my backup file. I have 1 million record in 1 table as a test. https://www.objectdb.com/java/jpa/tool/ backup How long does it usually take for a backup ? And are there no temp | |
How to restore the offline backup dear sir/mam, kindly assist how to restore the backup ayugoyal13 Ayush Goyal An ObjectDB backup is a valid database itself. Just replace the database file with the backup file. support ... how can i replace the backup file with the previously used file which is in use ? kindly help | |
How to do an Offline Database Backup? thread titled, "Sample JDO Architecture for Follow Up Questions". I desire offline backups .  ... connections until the backup is complete. How can I guarantee that a database is no longer being used ... datastore file backup which guarantees the file will not be corrupted? CBE CBE You should close | |
exception during online backup hi from time to time i get exception during online backup in server/client config ... backup "); backupQuery.execute(); but this is not an urgent functionality for us br Tomasz Tomasz Wozniak Thank you for your report. I will try to reproduce it by a test that uses online backup | |
Catching exceptions from client-server mode online backup We're using the following to trigger an online backup and we're trying to implement server-side online backup (as discussed in https://www.objectdb.com/forum/2737). EntityManager em = database.createEntityManager(); TypedQuery backupQuery = em.createQuery("objectdb backup ", Thread.class | |
Backup from explorer Is it possible to make a backup from the explorer? jastorga Juan If the database is not in use you can use the File Open dialog and then copy and paste on the database file (right click a database file to see the copy command). But a safe online backup (while the database is in use) is not supported. support Support | |
Online backup in embedded mode fails Hi, As in topic. "online backup " fails when executed in embedded mode. Everything works fine with server mode. java.lang.NullPointerException at com.objectdb.o.BAC. (BAC.java:63) at com.objectdb.o.MST.U4(MST.java:1764) at com.objectdb.o.MST.U3(MST.java:1745) at com.objectdb.o.WRA.U3(WRA.java:498 | |
JPA Extended API Reference Guide dynamically , build type-safe queries, and optimize database fetching. Lists additional dynamic | |
JPA Named Queries A named query is a statically defined query with a predefined, unchangeable query string. Using named queries instead of dynamic queries can improve code organization by separating JPQL query ... literals dynamically into the query string, which results in more efficient queries. @NamedQuery | |
Database Management Settings. Recording can also be useful for backups and for debugging because it allows you to reproduce problems by ... " ) specifies which operations to record. For backups , you only need to record "write" operations | |
JPA Criteria Query Expressions Jakarta Persistence (JPA) Criteria API uses a hierarchy of interfaces to model query conditions and selections, enabling the construction of dynamic , type-safe queries. These interfaces represent the building blocks for defining query logic programmatically. The hierarchy of the expression | |
JPA Queries Jakarta Persistence provides powerful APIs for executing database queries using JPQL strings or the programmatic Criteria API. These interfaces support both static and dynamic query construction with full type safety. General query objects Execute SELECT, UPDATE and DELETE queries in JPA using | |
JPA Runtime Tuning & Configuration Most Jakarta Persistence configuration is static, defined through annotations (e.g., @Entity , @Table ) or set globally at the persistence unit level during bootstrapping . This section describes dynamic options that control runtime behavior and allow you to adjust settings per session, query, or | |
JPA Criteria Queries The Jakarta Persistence (JPA) Criteria API provides a type-safe, programmatic alternative to string-based JPQL for constructing dynamic queries, ensuring compile-time safety and facilitating easier refactoring. It defines a structured hierarchy of interfaces for SELECT, UPDATE, and DELETE | |
JPA Metamodel and Graphs The Jakarta Persistence (JPA) Metamodel API provides a type-safe way to introspect the persistent object model at runtime. It allows developers to programmatically examine entities, embeddables, and their attributes to build dynamic queries and validate persistence structures. The Metamodel Access | |
ObjectDB Object Database Features like syntax. Query Definition and API Dynamic query definition, including using JPA Criteria Query | |
JPA Persistence Unit useful for microservices, dynamic environments, or applications where configuration is managed by | |
Chapter 4 - JPA Queries (JPQL / Criteria) JPA. The first section describes the JPA API for running dynamic and static (named) queries | |
Database Doctor. We also recommend that you regularly validate production database files (or their backups ) by running | |
Dynamic Metadata (JDO 3.0) JDO 3 introduces the ability to specify and query metadata of persistable types dynamically . ObjectDB 2 supports specifying metadata by: JPA XML Mapping Metadata JPA Annotations JDO XML Metadata (e ... at build time. Dynamic metadata enables specifying metadata at runtime, for example, for dynamically | |
Step 1: Create a Web Project We start by creating a new Eclipse Dynamic Web Project: Open the [New Project] dialog box, e.g. by using File New Project... Select Web Dynamic Web Project and click Next . Choose a Project Name (e ... to Tomcat 6 (which has to be downloaded separately) . Click the Finish button to create the dynamic | |
Online Backup degrades responsiveness. days: try { CoreService.getLogger(this).info("DB Backup Start..."); TypedQuery backupQuery =   ... .createQuery("objectdb backup ", Thread.class); Thread backupThread = backupQuery.getSingleResult(); backupThread.join(); CoreService.getLogger(this).info("DBService Backup DONE!"); } finally { em.close | |
user defined backup file We need a way to do a (online) backup to a user defined backup -destination. Maybe in that way: backupQuery.setParameter("targetfile", new java.io.File("/User/ Backup /test.objectdb")); which should create a backupfile with the name ' test.objectdb " in the directory ' /User/ Backup / ' or backupQuery | |
Step 1: Create a Java EE 6 Web Project We start by creating a new Java EE dynamic web project in Eclipse: Open the [New Project] dialog box, e.g. by using File New Project... Select Web Dynamic Web Project and click Next . Choose ... dynamic web project. To add ObjectDB/JPA support to the project, drag the objectdb.jar file from | |
Vacuum - Reclaiming Unused Space In Odb? The online backup feature appears to copy the dead space as well so isn't performing ... We are trying to optimize the database size due to the time it takes to perform an online backup for large databases. Our organization requires daily backups on our data and we have a limited | |
Online Backup An ObjectDB database file can be backed up simply by copying the file (with the associated recovery file if exists). This should only be done when the database is closed. Online backup will enable backup also when the database is open and in use. support Support Online backup is now implemented in ObjectDB 2.1. support Support | |
jakarta.persistence.EntityManager mutable EntityGraph , allowing dynamic definition of an entity graph. Parameters: rootType - class | |
Consequence of lost ODB$ Files? Hi, We use the Object DB backup utility for most of our backups , however we also do file system backups . Recently our file system backups have been failing because the .odb$ (write files) have been removed, by the DB Server, during the backup . My question is that if we have a good | |
Step 1: Create a Maven Web Project We start by creating a new Maven-WTP dynamic web project in Eclipse: Open the [New Project] dialog box, e.g. by using File New Project... Select Maven Maven Project and click  ... stop Guestbook Now you should have a Maven based Eclipse dynamic web project (WTP) with Spring MVC | |
Database is locked when in use a database when it is in active use is unsafe. With ObjectDB 2.x you should use online backup for this purpose. support Support Thanks for the reply. I went through the online backup web page ... the follwoing code query.setParameter("target", new java.io.File("c:\\ backup ")); And i | |
High availability and other pratical questions; Does DB backup backs all objects including indexes? If yes, is there a way to backup data only? And. is there a way to backup specific entities only? What is the overhead of online backup ... this feature is released). Currently ObjectDB online backup backs up the entire database including | |
jakarta.persistence.EntityManager.createEntityGraph(Class) Jakarta Persistence (JPA) Method in jakarta.persistence.EntityManager EntityGraph createEntityGraph ( Class rootType ) Create a new mutable EntityGraph , allowing dynamic definition of an entity graph. Parameters: rootType - class of entity graph Returns: entity graph. Since: Jakarta Persistence (JPA) 2.1 |