Hi all,
My database contains only unique fields.
Suppose take the following table for discussion.
Table Name: EMP
COL_NAME TYPE
EMP_NO PRIMARY KEY, UNIQUE
EMP_DOB PRIMARY KEY, UNIQUE
EMP_ROLE
My question is: How to develop POJO for this table?
** Shall I have to develop two POJOS, one for EMP table and
one for @Embeddable, where I can define the properties for
the columns EMP_NO, EMP_DOB
** Shall I have to develop a POJO, which is used for
@Embeddable.
** Or with out @Embeddable also I can develop only one POJO
for the EMP table
Please provide your suggestions.
Reagrds,
Madan
|