How to name a primary key constraint?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

How to name a primary key constraint?

Debmalya Jash

 

1.      How to name a primary constraint?


Name

    Type

Definition


PK_POSTAL_ADDRESS

Primary Key

Primary Key (CONTACT_MECH_ID)

Defined Primay Key  like this <prim-key field="contactMechId"/> . Can't give
any name to this constraint?

 

 

As we can name foreign-key constraint

<relation type="one" fk-name="POST_ADDR_CMECH"
rel-entity-name="ContactMech">

            <key-map field-name="contactMechId"/>

</relation>

Is there any way to name the primary key constraint?

 

-thanks & best regards,

Debmalya Jash



============================================================================================================================

Tech Mahindra, formerly Mahindra-British Telecom.
 

Disclaimer:


The contents of this E-mail (including the contents of the enclosure(s) or attachment(s) if any) are privileged and confidential material of Tech Mahindra and should not be disclosed to, used by or copied in any manner by anyone other than the intended addressee(s). In case you are not the desired addressee, you should delete this message and/or re-direct it to the sender. The views expressed in this E-mail message (including the enclosure(s) or attachment(s) if any) are those of the individual sender, except where the sender expressly, and with authority, states them to be the views of Tech Mahindra.


This e-mail message including attachment/(s), if any, is believed to be free of any virus. However, it is the responsibility of the recipient to ensure that it is virus free and Tech Mahindra is not responsible for any loss or damage arising in any way from its use.

============================================================================================================================