Hello all,
I have the following class. The table would have just a name and value fields, with name being the pk. How can i map this class? it would seem that i'd need a separate table for the class itself with just a primary key so that the <map> tag can be enclosed in a <class> tag. That would suck.
Code:
public class Config {
Map config;
public ServerConfig() {
config = new HashMap();
}
public String getProperty(String key) {
return String.valueOf(config.get(key));
}
public void setProperty(String key, String value) {
config.put(key, value);
}
}
Thank you[/code]