tags:

views:

57

answers:

1

Hi,

I have a table with two primary keys,how can i map the same in hbm mapping file.How to define two primary keys.

A: 

Two primary keys? You probably mean a composite primary key. Check this here.

lexicore
Perhaps a primary key and a secondary unique index.
crowne