Initial implementation for hibernate3