-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: [SOLVED] reveng.xml generator assigned
PostPosted: Sat Nov 24, 2012 1:58 pm 
Beginner
Beginner

Joined: Thu Mar 27, 2008 8:49 am
Posts: 27
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?


Top
 Profile  
 
 Post subject: Re: [SOLVED] reveng.xml generator assigned
PostPosted: Sun Nov 25, 2012 12:17 am 
Beginner
Beginner

Joined: Thu Mar 27, 2008 8:49 am
Posts: 27
Solution was:

Quote:
<table name="jforum_users" catalog="prosoc_forum">
<primary-key>
<generator class="assigned" />
</primary-key>
</table>


I had the wrong catalog name.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.