reset password
Author Message
mbhatt
Posts: 14
Posted 17:37 Apr 22, 2009 |

Concider the following code for List

 

<list name="phones" table="phones">

      <key column="customer_id"/>

      <index column=phone_order"/>

      <element type="string" column="phone"/>

</list>

 

is there any way that i can include more fields in phone table ...?

and also can i use some existing cloumn field for index rather than creating new field....

cysun
Posts: 2935
Posted 17:45 Apr 22, 2009 |
mbhatt wrote:

is there any way that i can include more fields in phone table ...?

No, if you are mapping a list of simple types.

and also can i use some existing cloumn field for index rather than creating new field....

Yes, and it sounds like you are trying to map a list of class types. See Sorted Set in the lecture notes.

Last edited by cysun at 17:46 Apr 22, 2009.