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 |
No, if you are mapping a list of simple types.
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.
|