Berkeley DB Java Edition Inheritance problem... -
09-26-2006
, 08:58 AM
Hallo developer.
I'm using the DPL to make some tests.
I got this simple example, a super class Animal and two subclasses, Cat
and Dog
@Entity
public class Animal {
@PrimaryKey
private String name;
......
}
@Persistent
public class Cat extends Animal{
private String color;
.....
}
@Persistent
public class Dog extends Animal{
private String race;
.....
}
In this way i got only one DataBase in my store
persist#DataModelStore#dpl.Animal, meanwhile i would like to separate
my data (one database for Cat and one for Dog) since i will insert
millions of records.
I haven't found any way in the getting started with DPL guide about
inheritance and how to handle it, and i couldn't fix this problem.
Any idea?
Kind regards
Massimo |