I am seeing mysql database creation script lie this:
DROP TABLE IF EXISTS `category_pages`;
CREATE TABLE `category_pages` (
`id` bigint(20) NOT NULL,
`pages` int(11) default NULL,
KEY `FK71E8D943E46A97CC` (`id`),
KEY `FK71E8D943BB482769` (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
I believe it's created from entity classes by Hibernate, since the project uses Hibernate to access database. If I define a number of entity classes like this, how can I generate the database creation script like this by Hibernate in Eclipse? I have a web proejct developed in Eclipse.
Is this the normal way to create a database in using Hibernate?