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

Answer by Vlad Mihalcea for JPA Embeddeble PK and nullable field

Since you must not use null in your PK, this is what you should do:Add a surrogate primary key. You can still achieve the uniqueness constraint and the default PK index with a parial index (in...

View Article



Answer by Karibasappa G C for JPA Embeddeble PK and nullable field

JPA guideline or "common sense" not allowed to use nullable fields for EmbeddebedId? If not, what annotions or logic do i need to add to make it work without adding another PK? answer is as...

View Article

Answer by Grim for JPA Embeddeble PK and nullable field

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...

View Article

Answer by nazlo for JPA Embeddeble PK and nullable field

Take a look hereSeems, that answer that (NULL == NULL) -> false is about your question.

View Article

JPA Embeddeble PK and nullable field

I have a table called "Attributes" which has a PK of 3 fields which can be null. In this case Style_no is not null but item_no and size_no are null.Is it possible to have a Embeddeble PK where fields...

View Article

Browsing all 5 articles
Browse latest View live


Latest Images