Hi,

I have defined a class, say Account.java, which is the container of the data
of the account table in the DB.

The Primary Key (PK) of the account table composed of 2 fields, say bank_id
and account_no.

I want to defined a mapping between this Account class and the account
table.

In the example come with Castor, the mapping.xml always having the
identity="id",
which is a single PK field.

If I use bank_id as the identity in the mapping.xml, I will get more than
one account of the given bank_id. 

Is it possible to define the identity to be composed of  "bank_id +
account_no", if yes, then how ?? 
 
regards
Philip

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to