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.

Tom



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

Reply via email to