I am having an awfully difficult time understanding why the following code does not work. I created Author, Book, and Publisher Entity classes. Author can write many books and a book can be written many authors. Publisher can publish many books but a single book can be published by one Publisher (or none). I am getting a error when trying to insert data. If I was just inserting mock data using sql, I would first insert the publisher (because it will have child tables that refer to it), then I would insert either an author, or a book, the order of what I insert first should not matter (but the book needs to have a valid FK).
and POOF! You're gone! But look, this tiny ad is still here:
Two software engineers solve most of the world's problems in one K&R sized book