B
Biagio
Hi everyone,
I have a Customer table that has the field in relation CodBanca @
OneToOne to Bank table.
Not always the field is enhanced, because a client may not have a
bank.
If I leave the field blank in a row, the query gives me error.
Can be mapped a relationship with an optional field or do I have to
find another solution?
Using a JTable is useful to have the relation mapped with the
annotation.
My code is
@ OneToOne ()
@ JoinColumn (name = "codbanca", unique = true, nullable = true,
Insertable = false, updatable = false)
private Banks banks;
Suggestions?
Biagio
I have a Customer table that has the field in relation CodBanca @
OneToOne to Bank table.
Not always the field is enhanced, because a client may not have a
bank.
If I leave the field blank in a row, the query gives me error.
Can be mapped a relationship with an optional field or do I have to
find another solution?
Using a JTable is useful to have the relation mapped with the
annotation.
My code is
@ OneToOne ()
@ JoinColumn (name = "codbanca", unique = true, nullable = true,
Insertable = false, updatable = false)
private Banks banks;
Suggestions?
Biagio