with <list> yes but....Do you have a collection of 1000 Products inside another entity ?
2009/5/2 Michal Gabrukiewicz <[email protected]> > Hi Fabio, > > Thanks for quick response. as usual :) > > Sure the UI will be drag&drop with Wysiwyg, but the underlying structure > requires a float for storing the position or does the list handle all this? > > Let's say we have 1000 of products in a category and we change the position > of only one item. Then we need to maintain the position of all items (all > product records will be updated) .. Am I right? > > Greetings from Bangkok > > On Sat, May 2, 2009 at 12:20 PM, Fabio Maulo <[email protected]> wrote: > >> <list> and forget the float... WYSIWYG is more easy. >> >> 2009/5/2 Michal <[email protected]> >> >>> >>> Hi, >>> >>> I was wondering how would you solve a custom ordering of items using >>> NHibernate: >>> >>> Category has many Products where each products sort position can be >>> customized by the user. >>> >>> - Currently I want to store the position as a float in order to make >>> reordering easy. Which would result in an easy formula for reordering: >>> new order position = (predecessor position + successort position) / 2 >>> >>> Which collection type would you use for that? >>> How should I do the mapping? >>> >>> I am new to NHIbernate and would appreciate some hints on how to solve >>> that in real world :) >>> Thanks! >>> >>> >> >> >> -- >> Fabio Maulo >> >> >> > > > -- > michal > Sent from Si Phraya, Bangkok, Thailand > > > -- Fabio Maulo --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "nhusers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nhusers?hl=en -~----------~----~----~----~------~----~------~--~---
