posted 13 years ago
I have two table--
1-[code=javaCREATE TABLE `ttdb`.`competence` (
`competence_id` int(10) unsigned NOT NULL auto_increment,
`competence_name` varchar(45) NOT NULL,
`competence_desc` varchar(100) default NULL,
`competence_status` varchar(45) NOT NULL,PRIMARY KEY (`competence_id`)
) ENGINE=InnoDB AUTO_INCREMENT=8 DEFAULT CHARSET=utf8;[/code]
2nd table is---
and i have two Entity class for them...
i have two method
one to CreateCompetence and another for createCompetencESection.
So how i can insert the value in the Refrence key Table.
Kindly give me the logic how to write function logic for
CreateCompetenceSection........