hai freinds,

i am having two tables :

create table category(category_id varchar(8) primary key ,
category_name varchar(25) )

create table subcategory(category_id varchar(8) ,
subcategory_id varchar(8) , subcategory_name varchar(25) ,
primary key(category_id , subcategory_id) ,
foreign key(category_id) references category(category_id) )

i want to develop entity bean using BMP. i want to insert records in these two tables.so i had taken a one create method with all the parameters of two tables and insert record for category in create method and insert record for subcategory in postcreatemethod. now i am not getting how to write the primarykey class. can anybody suggest me how to write the primary key class , load and store methods in bean .

with regards
k.ramakrishna