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!
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to