About rename

manual

Schema Update

Explains how to handle JPA/JDO database schema evolution in ObjectDB.... The com.example.old3 package is not renamed, but rename operations are specified for some of its classes. The <class> ... to be written as C$E) classes. Class B is not renamed but rename operations are specified for some of its fields. The <field> ...

 
issue

Schema-Update: Rename superclass and remove one subclass

Hello, we renamed a superclass and removed one of the subclass. If we then try to open the Database (with ObjectDB-Explorer) we get a "Failed to generate dynamic type ..."   Small Example: Generate Database ... } }   Then we rename SuperClass to RenamedSuperClass and Remove the ChildClassB. ...

 
forum_thread

Schema-Update: Rename superclass and remove one subclass

Hello, we renamed a superclass and removed one of the subclass. If we then try to open the Database (with ObjectDB-Explorer) we get a "Failed to generate dynamic type ..."   Small Example: Generate Database ... } }   Then we rename SuperClass to RenamedSuperClass and Remove the ChildClassB. ...

 
forum_thread

Schema evolution & renamed/moved enum

Hello, I have an entity with an attribute of type enum say com.pkg1.MyEnum. I created a few instances of the class with this attribute of type com.pkg1.MyEnum. Now, I moved that enum to a different package and renamed it say com.pkg2.MyNewEnum. When I open my database again, the attribute is null. I don't seem to be able to use the <schema> tag in the config file because my enum is not an entity. What is a the proper way of handling the migration? Thanks, Farid  #1 2015-02-19 21:12 Hello, I have an entity with an attribute of type enum say com.pkg1.MyEnum. I created a few instances of ...

 
manual

Database Schema Evolution

Explains how ObjectDB handles automatically schema changes. Modifications to entity classes that do not change their persistent field definitions (their schema) are transparent to ObjectDB. This includes adding, removing and modifying constructors, methods and non persistent fields. However, additions, deleti ...

 
forum_thread

Rename Application StringIdentity

I don't think JDO supports altering an entity's Application Identity.  Does ObjectDB? @PersistenceCapable public class MyClass implements Serializable, Cloneable{ @Id private StringIdentity id; ... }   #1 2016-08-07 22:59 I don't think JDO supports altering an entity's Application Identity.  Does ObjectDB? @ ...

 
forum_thread

Schema update: package, class and field

Hello, how can it be specified in the schema, that an entity is moved to another package? Package Structure (version 1) com |- btc |- impl |- Class1.java |- internal |- Class2.java |- Class3.java Now I want to move Class2   from com.btc.internal to com.btc.impl ... classes. But a combination of moving a class and rename a field of the class doesn't works.   I had extended a example in which i already rename a field. Only rename the field  [example works] ...

 
forum_thread

Complex Schema Upgrade not working

Hello, We're trying to upgrade the DB-Schema. Simplied our source/original Schema/Class-Hierarchy looked like this: class contact.Contact class customer.Customer extends contact.Contact class member.Member extends customer.Customer We have database records within each class type (Contact, Customer and Member). #1 2015-01-19 09:38 Hello, We're trying to upgrade the DB-Schema. Simplied our source/original Schema/Class-Hierarchy loo ...

 
forum_thread

Compare old and new schema

Hello, I have an old database file with important data. Over time, I have modified some of the entity classes but did not keep track of the changes. Some fields may have been renamed or removed, some classes may have been renamed or changed package. Is there a way for me to check what "format" the entity classes have in the old database file and compare that with the new classes definitions?   Thanks, farid #1 2015-02-13 13:10 Hello, I have an old database file with important data. Over time, I have modified some of the entity cla ...

 
manual

[ODB1] Chapter 9 - ObjectDB Explorer

Explains how to view and manipulate database files in the database explorer. ... the context menus), you can copy, cut, paste, delete and rename directories and files. You can also use this dialog to create new ... | Load New Classes" command. You can also delete or rename a selected persistent class using the "Edit | Delete" and the "Edit | ...