E
Elhanan
hi..
i wanna develop a classsobject model what can generate a certiain xml
strcutre as well as reading it. now the xml is rather compelx, it
dosn't have an element with attibutes to denote class and proerties,
but an element which has another element which has another element
which then has another element which could be a string or number or
fraction (the element itself has a different name like <StringValue ..
this dom must also presist this data in normlized tables.
can hibernate help me in this regard?
how i would handle the different value elements, at first i thought
about creating a common interface for their common attributes and
emplement a different class for each one but then the main value
property must be different for each one ? (unless i'll use object
property for everyone and throw an exception mismatch at run-time).
each basic value element as different sets of properties.
an example xml would
<BigElement ...
<GroupAtributes...
<Attribute...
<StringValue ...
</Atribute>
</GroupAttributes>
</BigElement>
<BigElement2 ...
<GroupAtributes...
<Attribute...
<SingleValue ...
</Atribute>
</GroupAttributes>
</BigElement2>
i wanna develop a classsobject model what can generate a certiain xml
strcutre as well as reading it. now the xml is rather compelx, it
dosn't have an element with attibutes to denote class and proerties,
but an element which has another element which has another element
which then has another element which could be a string or number or
fraction (the element itself has a different name like <StringValue ..
or <SingleValue..
this dom must also presist this data in normlized tables.
can hibernate help me in this regard?
how i would handle the different value elements, at first i thought
about creating a common interface for their common attributes and
emplement a different class for each one but then the main value
property must be different for each one ? (unless i'll use object
property for everyone and throw an exception mismatch at run-time).
each basic value element as different sets of properties.
an example xml would
<BigElement ...
<GroupAtributes...
<Attribute...
<StringValue ...
</Atribute>
</GroupAttributes>
</BigElement>
<BigElement2 ...
<GroupAtributes...
<Attribute...
<SingleValue ...
</Atribute>
</GroupAttributes>
</BigElement2>