Hi,
I am working on a project using hibernate 3.2.0 . I have to use a previously built class(non-bean), that i can't change, that i have to map.
This class has a public constructor (no setter methods) and a method named stringValue (no getter methods).
Now, I need to map this to a particular column(varchar) in the database. I am using jdk1.4 and i have to use .hbm.xml for mapping.
I have tried mapping it using the <component> tag, but the problem is what to write in the <property> tag, there is no property or its getter-setters in the class, only the methods.
is there any way, i can do the mapping.
Thanks...
|