hi all,
i have very basic problem regarding hibernate.the following is DDL of the table which i want to map to class.
CREATE TABLE `corporate_levels_history` (
`corporate_level_id` int(10) unsigned NOT NULL,
`corporate_level_code` int(10) unsigned NOT NULL,
`corporate_level_name` varchar(45) NOT NULL,
`corporate_level_description` varchar(500) NOT NULL,
`modified_by` varchar(45) NOT NULL,
`modified_on` datetime NOT NULL,
`approval_status` varchar(2) NOT NULL,
`remark` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
you can see above table does not have primary key.
can any one tell me what will be the hbm.xml contents?
please help me. thanks in advance.
thanks,
-Pankaj