ObjectDB Database Search

51-100 of 200 results

PersistenceException: Failed to locate field

Hi, have recently been running into this issue when changing the schema : com.objectdb.o ... . pretty sure that in the past schema evolution would not have triggered errors, is this case, a simple ... . Specifically, from: http://www.objectdb.com/java/jpa/entity/ schema "Fields in the new schema

UPDATE query cannot set a new field after schema change

UPDATE query cannot set a new field after schema change

DB Doctor sets type to "unknown" for new fields

and run DB Doctor on the exiting DB file in order to update the schema . The fields are added to the schema as expected, however their type is set to unknown - we were expecting Boolean. The attached ... .emergency FROM RecordingMetaData AS r In addition, the entity class schema shows the Boolean type, as

Unexpected exception during open the database

the schema block from objectdb.conf all works fine during opening the database. The automatic index ... EmbeddedSystems The exception is thrown during index rebuild. It is strange that a schema change triggers an index ... that this is the only schema change?   support Support Yes, the reason is the schema change for an entity

ArrayIndexOutOfBoundsException

of this exception is unclear but according to the stack trace it is related to failed schema evolution ... is unexpected, since you probably haven't changed the schema of the type already 3 times ... Eibschutz Thank you for the update. Currently an ObjectDB server supports live schema changes

Time Sequence Object Command DB

schemas are stored in the database and updated schemas are added in sequence in the database without having to update objects defined using the older schemas .  When the database is loaded, it will first load an object schema , then the object, then perhaps a new schema and a new object of the same

Database Inconsistency or corruption

classes:   @javax.persistence.Entity @javax.persistence.Table(name = "ObjectValues", schema = "dex ... .TableGenerator(name = "objectValueGen", table = "IdValues", schema = "dex_01", pkColumnName = "idName ... , orphanRemoval = true)   @javax.persistence.JoinTable(name = "ObjectValueAttributes", schema = "dex

Corrupted Database or error in ObjectDBExplorer?

The data in this database is probably fine, but apparently the Explorer is missing a recent schema change ... .TestCaseImpl but somehow the Explorer doesn't have the up to date schema in the database. If this is the case, try to open the database with up to date schema (your entity classes and XML metadata if any

javax.persistence.Persistence

schema generation to occur. The Persistence class is available in a Java EE container environment as ... the factory. These properties may include properties to control schema generation. The values ... generateSchema (String persistenceUnitName, Map map) Create database schemas and/or tables

@Transient

are stored as part of the class schema in the database (but only as part of the schema , values ... . It might be confusing and it would be better to filter transient fields from object display. Handling schema changes is explained at: http://www.objectdb.com/java/jpa/entity/ schema http://www.objectdb.com/java/jpa

Primary key generation problem after changing entity package

have been probably lost for changed entity classes. After schema change I keep getting errors : Attempt ... and added schema update to the configuration:              ... ; Running the test again didn't cause any error. Maybe there is a bug when more complex schema changes

ObjectDB Enincompatible with Quarkus?

near the end is concerning: Caused by: graphql. schema .validation.InvalidSchemaException: invalid schema : "__odbVersionCrc" in "Film" must not begin with "__", which is reserved by GraphQL introspection ... more Caused by: graphql. schema .validation.InvalidSchemaException: invalid schema : "__odbVersionCrc" in

Extending model by "common entity"

explorer or doctor. lwalkowski Lukasz Walkowski This schema change should be handled by ObjectDB ... - it demonstrates a bug in ObjectDB schema evolution. Please check build 2.0.5_01 that should fix it. If possible - apply the schema change again to a database that was used only with the old schema

@ElementCollection Set is emptied sometimes

. They appear HashSet in ObjectDB Explorer. The only common thing I've seen is that this MAY happen when schema ... while schema changes, but not all the times. The interesting part is that most of the times, schema ... . support Support I just want to mention that I didn't forget about this, but the schema of the project I

ODB should auto-restart if it detects it's necessary

Hi! I find very tricky the need to restart ObjectDB server after schema modifications in ... objectdb.config) that each time ObjectDB detects a schema change that requires restart ... the last days because of these schema changes without restart, which gave us a lot of problems

Best practice: Database update/migration of embedded databases in products

btc_es BTC EmbeddedSystems The ObjectDB schema evolution support consists of: Automatic schema evolution - for adding and removing fields and for class hierarchy change. Configuration schema changes ... this schema change you will have to maintain all the fields, (the old and the new) in the new schema , and use

com.objectdb.o.UserException: Failed to generate dynamic type

these classes from the database schema fails. What is the hierarchy of AbstractLong and AbstractNumber ... /  -classpath argument. support Support Reading about Schema Update. I see there is Package/Class/Field elements in the schema - but where do I find the schema section? In which file

multiple different applications access one odb file

and the other one would be for exposing the DB data via web services. Do all these apps need to have the same DB schema . The BIRT ... , different POJO classes in one APP would result in DB schema change. Actually, we have tried ... of the same entity class with different database schemas on the same database at the same time

Attempt to store an instance of a non persistable type

for one platform (there the launcher is slightly different), could it be that the schema of the other database ... that there is some issue with the schema in that database. However, if the entity class is available in the classpath when you open the EntityManagerFactory  the schema is expected to be updated

Persistence.generateSchema(persistenceUnitName,map) - JPA Static Method

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

javax.persistence.Table

. Example: @Entity @Table(name="CUST", schema ="RECORDS") public class Customer { ... } Since: JPA 1.0 ... schema default "" (Optional) The schema of the table. Defaults to the default schema for user

Not releasing locked MST object

(EMImpl.java:292) jakab Gergely Jakab The new stack trace indicates a collision between automatic schema ... indexes require rebuilding due to schema change). As a workaround, try disabling index rebuilding (update) and see if it helps. Later (after the schema update was processed) you should enable it again. Let

javax.persistence.CollectionTable

of the collection attribute, separated by an underscore. Since: JPA 2.0 String schema default "" (Optional) The schema of the table. If not specified, the default schema for the user is used. Since: JPA 2

javax.persistence.JoinTable

an underscore. Since: JPA 1.0 String schema default "" (Optional) The schema of the table. Defaults to the default schema for user. Since: JPA 1.0 UniqueConstraint [] uniqueConstraints default {} (Optional

javax.persistence.SecondaryTable

the primary table. Since: JPA 1.0 String schema default "" (Optional) The schema of the table. Defaults to the default schema for user. Since: JPA 1.0 UniqueConstraint [] uniqueConstraints default {} (Optional

javax.persistence.TableGenerator

String schema default "" (Optional) The schema of the table. Defaults to the default schema for user

Deadlock in objectdb code

indicates a possible deadlock during initialization of new persistent schema ... , so they aren't first encountered later?  Also, is there a logging option to follow schema ... can find managed classes automatically .  Also, is there a logging option to follow schema changes

Deadlock problems solved - a suggestion

the necessary schema changes (including creating the database if necessary), so that a database is already set up with the complete schema before an application runs?  All the information about the schema should be visible from a combination of XML files (such as package.jdo) and/or annotations

Recommendation - concurrent access multiple class v

Chirac Currently schema changes require server restart, as well as restarting the application with the new schema . ObjectDB servers usually do not have a direct access to your classes, so this is not ... , changing the schema requires restarting all of them with the new version of your application

Embedded in JDO metadata not working in objectDB 2.x ?

with embedded objects ? No such utility. After upgrading the schema you will have to write a small ... the schema and wrote the program which retrieves the containing entities, made them dirty ... delete now the unwanted entity objects? Since I upgraded the schema where these objects are declared as

Failed to validate XML

Exception { if (null != em) { em.close(); } } /** Create database schema from entities. */ @Test public ... : download all three schemas from page - http://www.oracle.com/webfolder/technetwork/jsc/xml/ns ... .persistence" place into package all three downloaded schemas   Now project will work without any problem

javax.persistence.ForeignKey

JPA Annotation ForeignKey Implemented Interfaces: Annotation Used to specify the handling of foreign key constraints when schema generation is in effect. If this annotation is not specified ... CONSTRAINT (Optional) Used to specify whether a foreign key constraint should be generated when schema

javax.persistence.GenerationType

support schema generation or cannot create the schema resource at runtime. Since: JPA 1.0 IDENTITY

javax.persistence.GenerationType.AUTO

documentation on how to create such resources in the event that it does not support schema generation or cannot create the schema resource at runtime. Since: JPA 1.0

javax.persistence.SequenceGenerator

values. Since: JPA 1.0 String schema default "" (Optional) The schema of the sequence generator

javax.persistence.Basic

may be null. This is a hint and is disregarded for primitive types; it may be used in schema

javax.persistence.Basic.optional

JPA Annotation Attribute in javax.persistence.Basic boolean optional default true (Optional) Defines whether the value of the field or property may be null. This is a hint and is disregarded for primitive types; it may be used in schema generation. If not specified, defaults to true . Since: JPA 1.0

javax.persistence.ForeignKey.value

JPA Annotation Attribute in javax.persistence.ForeignKey ConstraintMode value default CONSTRAINT (Optional) Used to specify whether a foreign key constraint should be generated when schema generation is in effect. A value of CONSTRAINT will cause the persistence provider to generate a foreign key

javax.persistence.Index

JPA Annotation Index Implemented Interfaces: Annotation Used in schema generation to specify creation of an index. Note that it is not necessary to specify an index for a primary key, as the primary key index will be created automatically. The syntax of the columnList element is a column_list , as

Persistence.createEntityManagerFactory(persistenceUnitName,properties) - JPA Static Method

when creating the factory. These properties may include properties to control schema generation

Internal Exception and Index Problems

). You can avoid this issue by restarting the ObjectDB server after every such schema change. Future versions of ObjectDB may support schema changes without restarting the server, or ... after schema changes. support Support But in our case a server restart doesn't help. The only way I figured

Entity field renaming does not work

String comparisonDisplayDataTypeName; We added the schema for renaming to the objectdb config:   ... is opened with the schema change specified in the configuration file, only the class ... the schema change, up to date classes (no source code is needed) with the new field names and your ObjectDB

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 ... .Thread.run(Thread.java:662) felixobjectdb Richard Szurgot In that case it is not a schema change

'DROP TABLE' in ODB?

of this type in database I want to remove this type from schema . How can I do this? Is there something like ... kind of compiled classes into the schema ? But under the "File" Menu none such option is provided ... of deleting classes in the Explorer. An obsolete class can be selected in the Schema / Managed

Unexpected exception (Error 990)

to locate a type in order to update an index. Did you get this exception after changing the schema ? If the schema has changed, was the server restarted before using the new schema ? After restarting

javax.jdo.annotations.PersistenceCapable

"" Whether this class or interface manages an extent. Since: JDO 2.1 String schema default "" Schema to use

javax.jdo.JDOHelper

.mapping.Catalog", "javax.jdo.mapping. Schema ", "javax.jdo.option.PersistenceUnitName". "javax.jdo.option

JDOHelper.getPersistenceManagerFactory(overrides,name,resourceLoader,pmfLoader) - JDO Static Method

.ConnectionFactory2Name", "javax.jdo.option.Mapping", "javax.jdo.mapping.Catalog", "javax.jdo.mapping. Schema ", "javax

javax.jdo.annotations.Index

JDO Annotation Index Target: ElementType.TYPE, ElementType.FIELD, ElementType.METHOD Implemented Interfaces: Annotation Annotation for a database index. Used for database schema generation to create indexes. Corresponds to the xml element "index". Since: JDO 2.1 Public Annotation Attributes Column

javax.jdo.annotations.Unique

JDO Annotation Unique Target: ElementType.TYPE, ElementType.FIELD, ElementType.METHOD Implemented Interfaces: Annotation Annotation for a database unique constraint. Used for database schema generation to create unique constraints. Also used to reorder database operations when flushing changes