dbTalk Databases Forums  

Polymorphism and DPL

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


Discuss Polymorphism and DPL in the comp.databases.berkeley-db forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
jack.tang
 
Posts: n/a

Default Polymorphism and DPL - 10-14-2006 , 10:39 AM






Hi guys.

Any persistence solution in annotation model for Polymorphism in
sleepycat 3.10?
Here is my example:

interface Credentials {
}

@Entity
class UserPasswordCredentials implements Credentials {
String username;
String password;
}

@Entity
class X509Credentials implements Credentials {
...
}

and
class CredentialsPersistentManager {
void save(Credentials cs){
bdb.insert(cs);
}

}

How can I achieve this?
Thanks

/Jack


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

Default Re: Polymorphism and DPL - 10-15-2006 , 10:03 AM






Hi Jack,

This was answered here:

http://forums.oracle.com/forums/thre...33783&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.