About package

manual

Schema Update

Explains how to handle JPA/JDO database schema evolution in ObjectDB.... when persistable classes are renamed or moved to another package. Running the application with persistable classes that have been ... update abilities: <schema > <package name = "com.example.old1" new-name = "com.example.new1" ...

 
manual

Database Schema Evolution

Explains how ObjectDB handles automatically schema changes.... Convertible Types Renaming (Package, Class and Field) Automatic Schema Evolution ... a valid casting operation in Java. Renaming (Package, Class and Field) The automatic schema evolution mechanism, as ...

 
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 ... in the schema, that an entity is moved to another package? Package Structure (version 1) com |- btc |- impl |- ...

 
forum_thread

Primary key generation problem after changing entity package

Hi, I changed package name for some of my entities in database. I added info in <schema><package... /></schema> of my configuration file - and the changes have been succesfully made in database. Unfortunately, sequences have been probably lost for changed entity classes. After schema change I keep getting errors : Attempt to reuse an existing primary key value... My primary keys are annotated as shown below : ... Hi, I changed package name for some of my entities in database. I added info in <schema><package... /></schema> of my configuration file - and the changes have ...

 
forum_thread

UserException: Package com.example.model is not found by the enhancer

My program works fine when I run it from Netbeans but as soon as I clean and build and move the dist directory out of the project to a remote location and run it using java -jar example.jar then I get the exception: com.objectdb.o.UserException: Package com.example.model is not found by the enhancer It occurs on this line: com.objectdb.Enhancer.enhance("com.example.model" + ".*"); ... the exception: com.objectdb.o.UserException: Package com.example.model is not found by the enhancer It occurs on ...

 
forum_thread

Class loading problem with private packages in OSGi environment

Our Business Objects are the JPA entities. We develop our product domain driven. This means we have several domains. Each domain is split into business layer and persistence layer (others are not relevant here). Per domain and per layer, we have an OSGI bundles. The business layer should have no dependency down (an exception is the dependency to the ObjectDB for the enhanced entities).  The persistence Layers have a dependency to the business layer and to the central DataAccess Layer. #1 2015-02-05 07:46 Our Business Objects are the JPA entities. We develop our product domain driven. This means we have several domai ...

 
forum_thread

Package name for persisted entities

Hi, I have a question about package name and searching for entities. As for now we were using two different databases for two different parts of our system. But we want to make a 'common' model for both systems. After merging entities from two different projects, we get single jar with all entities. Unfortunately some of the names are the same for entities: - homplex.model.dbobject.Inspiration - pl.hplxtool.model.Inspiration ... Hi, I have a question about package name and searching for entities. As for now we were using two different ... Now the problem is that even if I specify full name with package in persistence.xml and set "exclude-unlisted-classes" for true, ODB is ...

 
forum_thread

package not found running ObjectDB under OSGi

Hi I have created in Eclipse a new plugin from existing jar file and than I tried to enhance my classes (using Ehancer from that new bundle), however I got an error :  [ObjectDB 2.2.8_02] Package datamodel.core.base is not found by the enhancer (error 108) The Enhancer was run in the following way :  ... however I got an error :  [ObjectDB 2.2.8_02] Package datamodel.core.base is not found by the enhancer (error 108) ... access to the NamedCoreObj class. Also package datamodel.core.base was set in my primary plugin as Exported ...

 
forum_thread

How to package orm.xml when using EJB in WAR?

Hi, I have database utility classes in one project, the id's use sequences declared in an orm.xml file for example: #1 2011-09-13 13:40 Hi, I have database utility classes in one project, the id's use sequences declared in an orm.xml fil ...

 
manual

[ODB1] Chapter 4 - JDO Metadata

Shows how to define JDO metadata for persistence capable classes.... Metadata for class a.b.X ( a.b is the package name, X is the class name), whose class file is a/b/X.class , is ... following paths (in the order shown): META-INF/package.jdo WEB-INF/package.jdo package.jdo a/package.jdo a/b/package.jdo ...