-->
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: <map> index requiring a type for known properties?
PostPosted: Thu Sep 14, 2006 3:21 pm 
Beginner
Beginner

Joined: Fri Jul 22, 2005 4:08 pm
Posts: 28
EDIT: I'm working with the 1.2 alpha right now.

Say I've got a MyTarget class with an IDictionary<string, MyProperty> collection mapped as:

Code:
<map name="Properties">
         <key column="TargetId" />
         <index column="`Key`" />
         <one-to-many class="MyProperty" />
      </map>


but it says I need to specify the type for the index even though the type should be available from either reflection or by the existing mapping for MyProperty:

Code:
<property name="Key" column="`Key`" length="256" not-null="true" />


I don't think this is a bug or anything, but wanted to check to make sure I wasn't missing something before I submitted a feature request... and I don't even know what that feature request would be... maybe for a new attribute for the <index> element called 'name' where you can specify the name of a property of the child object instead of the column?

Any thoughts?


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.