Hi!
I have this table:
Code:
____________________
| PESSOA |
--------------------
| CPF |
| NOME |
| RG |
| ORGAOEXPEDIDOR |
| ORGAOEXPEDIDORUF |
--------------------
The column: CPF is a key, asigned by the user.
This columns: RG, ORGAOEXPEDIDOR and ORGAOEXPEDIDORUF are unique, but, this is not a "composite-id" with CPF.
How mapping this properties are unique?
I try to use the tag:
<database-object to create the constraint:
Code:
alter table PESSOA
add constraint UNQ1_PESSOA
unique (RG,ORGAOEXPEDIDOR,ORGAOEXPEDIDORUF)
without success.
Any idea?