Hi all,


Thomas Dudziak wrote:

On Tue, 25 Nov 2003, eric barbe wrote:



Hi,

Honestly, I did not test Hibernate, I only read the documentation.
Hibernate works the other way around from OBJ for modeling the XML.
What I saw for string list is this :
        <set name="names" table="NAMES">
                <key column="GROUPID"/>
                <element column="NAME" type="string"/>
        </set>
It seem's simply. You give the "name" property, then the "table" name and
the field (or element here) type.

I think that Hibernate is wrapping each java object naturally.

Regards

Eric

PS : see this link
http://www.hibernate.org/hib_docs/reference/html/collections.html#collection
s-s1-3



Unless I'm mistaken this seems to be something that OJB is not capable of,
at least not directly. In OJB, the elements of collections have to have a
class descriptor in the repository descriptor whereas Hibernate seems to
also have the notion of "primitive" elements.

Yes, with OJB you would have to write a simple Wrapper class that is declared as element-class in the collection-descriptor.


questions to the users: Do we need a feature to simplify the storage of primitive types?

cu,
Thomas


Tom




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to