I have an entity with an embedded key. The entity has only the key as a field and the key has 7 fields, some of which can be null.
When I run the following query:>
As user405935 said, it is not a good idea to have nullable columns as a part of your composite key.
I was in the same situation as yours and the problem was that the entries from the table had NULL values on the columns that took part from my composite key, so it couldn't create my embedded key at runtime.
Solutions: