-->
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.  [ 4 posts ] 
Author Message
 Post subject: hbm2java can't specify generated class name
PostPosted: Thu May 31, 2007 9:13 pm 
Newbie

Joined: Thu May 31, 2007 8:48 pm
Posts: 2
Hi,

I am using HibernateTools 3.2.0 beta9a. I'm doing hbm2java, but somehow I couldn't change the name of the class that was generated. It's always defaulting to the camelcased table name, even though I'm setting the classname via the 'class' attribute of <table>:

<hibernate-reverse-engineering>
<table-filter match-name="Sys_Users" exclude="false" />
<table name="Sys_Users" class="User">
...
</table>
</hibernate-reverse-engineering>

In this case the generated class is always named SysUsers instead of User.
Does anyone know how to make this work?

thanks.

ts


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jun 01, 2007 2:33 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
your casing or schema/catalog name probably does not match.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jun 01, 2007 4:07 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
your casing or schema/catalog name probably does not match.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jun 01, 2007 5:14 pm 
Newbie

Joined: Thu May 31, 2007 8:48 pm
Posts: 2
Thanks, Max, you're right. It was a schema/catalog issue.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 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.