Hello,
I was searching for this solution but never found anything close to the answer.
I'd like to use hibernate in case, where there is a class PObject but there is just array of variables, which would need to be stored int the database.
Let say:
class PObject {
String className;
String tableName;
Map variables = new HashMap();
public class PObject() {
super();
}
public getVariableByName(String nameSymbol) {
}
}
The PObject class can be a Person, Address, ... any kind on an object. What I would like is find a way, where hibernate mapping is done automatically.
Any help appreciated.
Best regards,
Bojan Kraut
|