Quantcast
Channel: JPA Embeddeble PK and nullable field - Stack Overflow
Viewing all articles
Browse latest Browse all 5

Answer by Grim for JPA Embeddeble PK and nullable field

$
0
0

Usually a compound pk is not allowed to have null-values in the database.

Technically we would say: Why not, a null can be a value too.

The DB-Analyst would ask: Ok, if i sort 1,2,3,4,null,5. Would you say null is before 1 or after 5?

Therefore PostgreSQL, Oracle, MySQL will not support null-values in compound primary keys.


Viewing all articles
Browse latest Browse all 5

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>