Thx for all  replies,

@Fabio

i have data base which i can't change it , it has a foreign key in the
second table whom entity is mapped to


@Anne

Unfortunately i can't change database design

On 19 June 2010 21:37, Anne Epstein <[email protected]> wrote:

> Looks like you're hitting this bug I reported last year:
> http://216.121.112.228/browse/NH-1747
>
> Guessing you have a legacy situation where the DB is a system
> integration point, so you've got to leave the DB as-is?   If that's
> not the case and you do have control over the DB, you should consider
> refactoring the DB and merging these tables.  Keeping the mismatch
> between your db and your object model low is going to keep you happier
> in the long run.
>
>
> On Sat, Jun 19, 2010 at 8:21 AM, Ahmed Emad <[email protected]> wrote:
> > hi all
> >
> > if i have entity mapped to 2 tables where i can mapp the second table
> using
> > ;
> > <join>
> > </join>
> >
> > but whta if i have association with another table and i must hold have Fk
> in
> > mapping
> > if the Fk is found in the second table only, should i mapp the
> association
> > in the join section ?
> > if any one know more about associations in case entity mapped to more
> than
> > table ,plz inform me
> >
> > --
> > 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]<nhusers%[email protected]>
> .
> > For more options, visit this group at
> > http://groups.google.com/group/nhusers?hl=en.
> >
>
> --
> 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]<nhusers%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/nhusers?hl=en.
>
>

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