Archive for May, 2010

Using non-managed entities with Hibernate3 and Oracle DB

This is primarily a reference post.
This is what we have:
1. A table in our Oracle DB with just key and value pairs (table name is key_value)
2. We have a class KeyValue.java that has two properties: Key and Value
public class KeyValue {
private String key = null;
private String value = null;
// with getters and setters
public getKey…
public setKey…
public [...]