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

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

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 ...

 
forum_thread

ODB tries to create log files inside its own jar on Win7

I sent a demo of an app I've been developing on Linux to some Windows 7 users, and they were unable to run it.  The stack traces they sent me indicated that ODB was trying to create its log files inside objectdb.jar, which was inside the executable jar packaged by Eclipse.  Here's the end of the stack trace: ... and wrote this one-class program:   package test ;   import javax. persistence . EntityManager ... I then exported it as a runnable jar with the option "Package required libraries into generated JAR" and sent it to a Win7 ...

 
tutorial

Step 2: Entity Class and Persistence Unit

Explains how to define a JPA entity class and a persistence unit (persistence.xml) in an Eclipse Spring MVC web application project.... Right click the project node (in the [Package Explorer] window), select  New > Source Folder , enter ... right clicking the new source directory node (in the [Package Explorer] window) and selecting  New > Class . ...

 
manual

[ODB1] Chapter 3 - Persistent Classes

Explains what a persistence capable class is and which types are supported by JDO.... can have any access modifiers (i.e. public, protected, package or private). 3.2  Persistent Fields and Types Storing a ... , float and double . Selected classes in package java.lang : Boolean , Byte , Short , Character , ...