-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: How to Map List of String within a <composite-element>
PostPosted: Fri Dec 02, 2005 2:51 pm 
Newbie

Joined: Mon Nov 28, 2005 4:41 pm
Posts: 8
Location: Mountain View, CA
Hi,

I'm having trouble figuring out how to map a class structure that might be outlined like this:

Code:
<class ...>
  <list ..>
    ...
    <composite-element ...>
      <property .../>
      <list ...>
        <element type='string'/>
      </list>
    </composite-element>
  </list>
  ...
</class>


Now, this is not valid according to the 3.0 DTD. However, replacing the nested <list> element with a <nested-composite-element> demands a class= attribute, while I want a simple list of String.

Am I missing something? What's the best way to map this sort of structure?

By the way, I note a near-complete lack of coverage of <nested-composite-element> in the documentation.

Answers will be greatly appreciated and pointers to the pertinent information are welcome.

Thanks.

Randall Schulz


Hibernate version:
3.1 (rc3)

Name and version of the database you are using:
MySQL 5.0


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.