I am trying to get Hibernate Tools to generate a hbm.xml file that has a generator of class assigned. Currently I have:
Quote:
<table name="jforum_users" catalog="forum">
<primary-key>
<generator class="assigned"></generator>
<key-column name="user_id" />
</primary-key>
</table>
but I can not get the output to change:
Quote:
<class name="forum.jforum.domainmodel.JforumUsers" table="jforum_users" catalog="forum">
<id name="userId" type="java.lang.Integer">
<column name="user_id" />
<generator class="identity" />
</id>
...
</class>
Quote:
CREATE TABLE `jforum_users` (
`user_id` int(11) NOT NULL AUTO_INCREMENT,
...
PRIMARY KEY (`user_id`)
) ENGINE=InnoDB AUTO_INCREMENT=500 DEFAULT CHARSET=utf8;
What am I doing wrong?