Hi guys,

I'm really in a problem here...

I'm dooing a "concourse" application, so, i'm using HiLo to generate my ids
to table "Concourse". Its running fine.

but, in my "Concourse" entity, i have a list of "Subscriptions", but, every
Subscription have to get ID by the Concourse;

Lets me try to explain in this way:

(Concourse)
ID                          Name of Concourse
[1]                          Test1

(Subscription)
ID                          Name of Subscriber                   ConcourseID
[1]                          User1
[1]

(Subscription)
ID                          Name of Subscriber                   ConcourseID
[2]                          User2
 [1]


and then i have to register another concourse:

(Concourse)
ID                          Name of Concourse
[2]                         Test2

and i want that next subscribers have a new sequence of identities,

(Subscription)
ID                          Name of Subscriber                   ConcourseID
[1]                          User1
[2]

(Subscription)
ID                          Name of Subscriber                   ConcourseID
[2]                          User2
 [2]


I thought to use List to get Indexed value, so it will be easy (i think),
but if i delete the first one of the List<> object,
nhibernate re-organize the Indices, so i cant do that.


Some one have idea how to map this ?

Thanks all.
---
Fernando Amadeu Zago
Desenvolvedor Arquiteto
Mult-e – People, solutions and technology
http://www.mult-e.com.br/
--
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