@JoinColumn(name = "", referencedColumnName = "", insertable = false, updatable = false)
Why insertable = false, updatable = false
are required while using JPA for creating table?
@JoinColumn(name = "", referencedColumnName = "", insertable = false, updatable = false)
Why insertable = false, updatable = false
are required while using JPA for creating table?
These two parameters are not required. You use them when you want JPA to prevent inserts and updates for a specific field.
Here is the relevant spec - @JoinColumn
.