dbTalk Databases Forums  

Berkeley DB Java Edition Inheritance problem...

comp.databases.berkeley-db comp.databases.berkeley-db


Discuss Berkeley DB Java Edition Inheritance problem... in the comp.databases.berkeley-db forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Mazi
 
Posts: n/a

Default 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


Reply With Quote
  #2  
Old   
mark.hayes@oracle.com
 
Posts: n/a

Default Re: Berkeley DB Java Edition Inheritance problem... - 09-27-2006 , 10:07 AM






This question was reposted and answered on the OTN forum:

http://forums.oracle.com/forums/thre...27329&tstart=0

Mark


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.