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 |