Mapping a composite primary key with a foreign key relation in Nhibernate?

This is the expected behavior. You're defining the foreign keys in your many-to-one mapping. So the columns need to exist in the object you're defining.

This is the expected behavior. You're defining the foreign keys in your many-to-one mapping. So the columns need to exist in the object you're defining.

I think you want this.

It works like a charm. Thanks Yads. Do you have any links to documents where I can read a little bit more about these stuff?

Thanks again. – LeftyX Dec 22 '10 at 9:13 @vandalo I'm actually an N but it's actually a port of bernate so they're very similar. I'd start here hibernate.Org/docs and read the reference manual to get an idea of how mapping files work.

After that it's just practice, practice, practice ;) – Vadim Dec 22 '10 at 15:22 Thanks. I've started with the official documentation but I don't have time to read the whole papers. There are so many tricks and things to know.

– LeftyX Dec 22 '10 at 18:05 @vandalo If there's one chapter to read it's chapter 5: Basic O/R mapping docs.jboss. Org/hibernate/core/3.6/reference/en-US/html/… – Vadim Dec 22 '10 at 18:11.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions