Why is a one to one relation not allowed between a persistable and a NON persistable entity?

4
Why is a one to one relation not allowed between a persistable and a NON persistable entity? I really don't get this ;-(
asked
1 answers
2

The short answer is that this would allow a persistent entity to point at a non-persistent entity in the database. But non-persistent entities are never stored in the database so the identifier would be pointing towards nothing, which is a form of data corruption. That's why it's not allowed.

Of course there are probably things we can do to get around this. But it requires some work so not allowing the association is the solution until we get to making it possible.

answered