Hello,
i have following problem and don't really know, how i could realize this with hibernate!
i have to follow a specification so i couldn't really change the structure of what i'm trying to explain...
I have class
JasBean contains several methods over a
KeyValueTuple.
one method:
Code:
set(String key, Object value)
the
KeyValueTuple is not part of the specification!
(i thought to handle this with in a one-to-many relationship from
JasBean to
KeyValueTuple with
key and
value as properties from
KeyValueTuple)
but the Object
value could be a String, a
JasBean or a not yet defined class !
fe a
JasBean could have a
KeyValueTuple whose value is another
JasBean which has a
KeyValueTuple whose
value is a..
Foo
Foo extends
JasBean and could have a
KeyValueTuple whose
value is a .. String (that would be the end in this case)
if anybody could give me hints, how to handle this, i would be grateful
Johannes