ObjectDB Database Search

1-50 of 200 results

Database Schema Evolution

(their schema ) are transparent to ObjectDB. This includes adding, removing and modifying constructors, methods ... schema , and old entity objects, which were stored previously in the old class schema , have to be converted to the new schema . Note: In client-server mode the ObjectDB server must be restarted

Schema Update

refactoring. Only these schema changes are specified in the configuration file. As explained in chapter 2 , other schema changes are handled by ObjectDB automatically. Note: Extreme caution is required ... with persistable classes that have been renamed or moved in the IDE, with no matching schema configuration

jakarta.persistence.TableGenerator.schema

Jakarta Persistence (JPA) Method in jakarta.persistence.TableGenerator String schema (Optional) The schema of the table. Defaults to the default schema for user. Default: "" Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.Table.schema

Jakarta Persistence (JPA) Method in jakarta.persistence.Table String schema (Optional) The schema of the table. Defaults to the default schema for user. Default: "" Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.JoinTable.schema

Jakarta Persistence (JPA) Method in jakarta.persistence.JoinTable String schema (Optional) The schema of the table. Defaults to the default schema for user. Default: "" Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.SecondaryTable.schema

Jakarta Persistence (JPA) Method in jakarta.persistence.SecondaryTable String schema (Optional) The schema of the table. Defaults to the default schema for user. Default: "" Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.CollectionTable.schema

Jakarta Persistence (JPA) Method in jakarta.persistence.CollectionTable String schema (Optional) The schema of the table. If not specified, the default schema for the user is used. Default: "" Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.SequenceGenerator.schema

Jakarta Persistence (JPA) Method in jakarta.persistence.SequenceGenerator String schema (Optional) The schema of the sequence generator. Default: "" Since: Jakarta Persistence (JPA) 2.0

Schema Evolution Question

after a schema change. "  It is unclear whether the client application with the upgraded schema ... is down and then have the client with the upgraded schema connect. That is to say, is it valid ... schema . Stop ObjectDB server. Start ObjectDB server. Start new client application with the new

How to enable and disable auto schema update?

Hello, Can I enable and disable the auto schema update? In some cases if multiple applications ... : Instate of updating the schema with old library db should throw some error and data should not corrupt ... that you can use: To disable any schema upgrade: System.setProperty("objectdb.temp.no- schema

Complex Schema Upgrade not working

Hello, We're trying to upgrade the DB- Schema . Simplied our source/original Schema /Class-Hierarchy ... added the schema upgrade to the objectdb.conf:             Only renaming packages worked well but when trying to make a schema upgrade with the classes results

Compare old and new schema

? Thanks, farid oudjanef Farid Oudjane Currently there is no automatic tool to compare the old schema ... the classpath) and view the content of the old database with the old schema . support Support Thanks ... and an automatic comparison of old schema vs new schema is the only reliable way of making sure database

Schema update: package, class and field

Hello, how can it be specified in the schema , that an entity is moved to another package? Package ... .java |- Class2.java |- internal |- Class3.java How should that be specified in the schema ?   I ... There should not be a difference between entity and embeddable classes regarding schema changes. Maybe

Automatic schema evolution causes ArrayOutOfBoundsException

Hi, I did 2 modification to our schema . Our schema looked like this: class Entity - List ... field, the schema now looks like this: class Permission (@Embedded) class Entity - List permissions ... . The objectdb doctor states "No errors have been found". Is there any other way to resolve this schema

Schema migration - long to String

specific action. Actually such schema changes are not related to the Doctor, and usually you don't have to run the Doctor after the schema change (you may need to run the Doctor if the field ... . Following your report, I checked and it seems that the Doctor may produce false alarms after such schema

Understanding limitations of schema evolution

Hi, I am trying to understand the limitations of schema evolution and have read the material on http://www.objectdb.com/java/jpa/entity/ schema as well as the link therein regarding manual schema ... , and you will have to write code for making this schema change. support Support Thanks for your reply

Database corrupted after schema change

;application log wrote any errors, so it looks to me that it is some failing schema evolution. When I tried ... _05 it might be the critical schema bug ( issue #2621 ) that was fixed in version 2.8.4. Please try ... did not help. We tried to open a DB with already corrupted data (by the schema change, without fixing

DB Explorer cannot be opened after schema package renaming of entity types

The DB Explorer cannot be opened after schema package renaming of entity types ... the database the entity types and deprecated entity types can be part of the identical package. The schema ... manually before the schema update then the database can be opened in the DB Explorer after the schema

schema update procedure

Is there a specific procedure that we should follow when making schema updates? I have often found ... The requirement to restart the server after schema change is known and documented . The need ... on the client side is to synchronize all the persistable classes by sending the up to date schema

Schema Update large refactoring

to do an automatic schema update of our database using the objectdb.conf file. The old package structure looks like ... , if it is possible to perform some sort of wildcard schema update, instead of specifying all the thousands ... , if it is possible to perform some sort of wildcard schema update Wildcards are not supported.  

Massive schema update

. My question is, Is there any way to migrate all the objects to the new schema after I wrote ... of schema update (including using the configuration element) is minimal. After an old object ... so you may choose to enforce updates of all the objects in order to avoid recurring schema conversions. support Support

Activation error on Schema change

; @OrderBy , and actually any change to your schema may cause a similar exception. Please verify ... . Even when objectdb.conf with old license key where copied to new version directory. No schema change

Schema Update: class hierarchy change

Hello, we try to change the class hierarchy of an Entity. You wrote www.objectdb.com/database/forum/899 that ObjectDB support automatic schema evolution for adding and removing fields and for class ... up and down in the class hierarchy as part of the automatic schema evolution. You can also move the name

Is there a way to extract the schema from an existing Database?

Hi ObjectDB, Is there a way to extract the schema from an existing Database? i.e. without using my class files Thanks EKK EKK Emmanuel Keskes The schema is available for viewing in the Explorer. You may use the JPA Metamodel API to extract it using your own code. support Support

How does objectdb deal with conflicting schemas?

Suppose we have an objectdb network server with multiple clients connecting to it. Some clients have the latest object schema , matching that of the server. But some have an older schema , not using fields that have since been added. Will this work? FastModel Ben Schreiber This is strictly forbidden. You must have the same version of classes everywhere. support Support

JPA Core Types

back transactions. Utilities and Caching Access metadata, manage schema , and interact with the second-level ... schema management, such as creating, dropping, or truncating schemas . Use this interface

JPA ORM Mapping Annotations

models to relational database schemas . These metadata elements define how entities, attributes ... and schema definitions Use the following annotations to map entities to database tables and define schema -level constraints: Specifies the primary table for an entity. Specifies a secondary table

JPA Exceptions

. Schema exceptions Exceptions related to database schema validation: Thrown when the database schema

ObjectDB Object Database Features

enhancement is optional (recommended before deployment). Schema Evolution Fully automatic schema evolution

Database Explorer

of bookmarked entity objects. The [ Schema ] window shows the user defined persistable types (entity ... ] tabbed window or select an element for viewing (an entity class in the [ Schema ] tabbed window

Database Management Settings

most database updates (except schema updates). The element The drop attribute of the element specifies

jakarta.persistence.PersistenceConfiguration

-provided SQL script to be executed when the schema is created. Since: Jakarta Persistence (JPA) 1.0 ... by "jakarta.persistence. schema -generation.create-script-source" . Since: Jakarta Persistence (JPA) 1.0 SCHEMAGEN_CREATE_TARGET The provider-generated SQL script which creates the schema when "jakarta

jakarta.persistence.SchemaManager

Jakarta Persistence (JPA) Interface jakarta.persistence.SchemaManager Allows programmatic schema creation , schema validation , data cleanup , and schema cleanup for entities belonging to a certain ... it may ignore the problem and continue. Parameters: createSchemas - if true , attempt to create schemas

jakarta.persistence.Persistence

. It may also be used to cause schema generation to occur. The Persistence class is available in ... . These properties may include properties to control schema generation. The values of these properties ... .2 void generateSchema ( String persistenceUnitName , Map map ) Create database schemas and/or

Schema-Update: Deactivation of automatic entity class removing and introduction of a new class remove in the schema config

less PlugIns). This presents us with further challenges when we have made changes to DB schema for new ... application to handle all database ( schema ) changes between two versions. That this ProfileMigration ... to explicitly define the classes, in the schema config (objectdb.config), that should be deleted.   In

jakarta.persistence.Table

is specified for an entity class, the default values apply. Example: @Entity @Table(name = "CUST", schema ... . Default: "" Since: Jakarta Persistence (JPA) 1.0 String schema (Optional) The schema of the table. Defaults to the default schema for user. Default: "" Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.JoinTable

. Defaults to the default catalog. Default: "" Since: Jakarta Persistence (JPA) 1.0 String schema (Optional) The schema of the table. Defaults to the default schema for user. Default: "" Since: Jakarta

jakarta.persistence.CollectionTable

(JPA) 1.0 String schema (Optional) The schema of the table. If not specified, the default schema

jakarta.persistence.SchemaValidationException

Interfaces: Serializable Thrown when schema validation fails. See Also: SchemaManager.validate ... of exceptions, each representing a problem detected while validating the schema . Parameters: failures ... detected while validating the schema . A persistence provider might choose to fail fast upon encountering

jakarta.persistence.SecondaryTable

. Default: "" Since: Jakarta Persistence (JPA) 1.0 String schema (Optional) The schema of the table. Defaults to the default schema for user. Default: "" Since: Jakarta Persistence (JPA) 1.0

jakarta.persistence.TableGenerator

catalog. Default: "" Since: Jakarta Persistence (JPA) 1.0 String schema (Optional) The schema of the table. Defaults to the default schema for user. Default: "" Since: Jakarta Persistence (JPA) 1.0 String

boolean field flips after schema update (in class) of another field

had many previous schema evolution changes (you might have a longer history of schema changes in ... version 2.8.4 that fixed that issue. support Support I think the schema may changed 2-5 times ... Petzold We also do not have an Exception in the query. We catch all of them. The schema is as

Schema-Update: Rename superclass and remove one subclass

you for your report. The test demonstrates a bug in schema evolution that includes renaming a super class ... workaround is to avoid removing a class and renaming its super in the same schema change ... then the schema change is expected to be processed correctly. support Support Ok. First we can live

jakarta.persistence.Persistence.generateSchema(String,Map)

;  String persistenceUnitName ,    Map map ) Create database schemas and/or tables and/or create DDL scripts as determined by the supplied properties. Called when schema generation ... : persistenceUnitName - the name of the persistence unit map - properties for schema generation; these may also contain

Feature Request: Subclassed PersistenceException for Type Not Found in DB Schema

with different schemas managed by the same ObjectDB server that are sharded based on the day.  We let ObjectdDB create the schema in each ODB file the first time objects are persisted.  The problem is that when a process runs that querys a shard before the schema is created a generic

jakarta.persistence.ForeignKey

Jakarta Persistence (JPA) Annotation Type jakarta.persistence.ForeignKey Implemented Interfaces: Annotation Specifies the handling of foreign key constraints when schema generation is in effect ... constraint should be generated when schema generation is in effect. ConstraintMode.CONSTRAINT specifies

jakarta.persistence.GenerationType

that it does not support schema generation or cannot create the schema resource at runtime. Since: Jakarta

jakarta.persistence.EntityManagerFactory

programmatic control over schema generation and validation, may be obtained by calling getSchemaManager ... SchemaManager getSchemaManager () Return interface providing access to schema management operations

jakarta.persistence.SequenceGenerator

: "" Since: Jakarta Persistence (JPA) 2.0 String schema (Optional) The schema of the sequence generator. Default

Compare two schemas or odb files

For example, if we make a backup of our database it would be helpful to have the possibility to compare the backup schema (odb file) with the current version in the database and as result we should get the difference between the two schemas . It would also be sufficient, if we can compare object