-->
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: Can the team add this future in the tools?
PostPosted: Fri Feb 04, 2005 3:40 am 
Newbie

Joined: Fri Feb 04, 2005 3:24 am
Posts: 6
When I use eclipse 3.1M4+JBossIDE 1.4.1+HBT to generate the java
POJO code and Maping file with JDBC reverse engineer from JDBC,
It work well .
My question is:
Assume there is a table named 'bbs_person',the java file name and mapping file name
which generated by the reverse engineer will be
'BbsPerson.java' and 'BbsPerson.hbm.xml',

But I realy want it will be
'Person.java' and 'Person.hbm.xml'.
I mean ,Can add some futrue to cut the prefix of the generated file from
the reverse engineer!

Does my question clearly?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 04, 2005 6:17 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
yes and we already have the feature, it is just not visible in the gui.

There is a ReverseNamingStrategy that does this magic...

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject: thanks for your help
PostPosted: Fri Feb 04, 2005 9:48 pm 
Newbie

Joined: Fri Feb 04, 2005 3:24 am
Posts: 6
thanks very much for the team work!

And I found the alpha version of the hibernate eclipse plug in has a bug!

The generated file "hibernate.cfg.xml" has some error!

Code:
<session-factory name="sessionFactory">

There is no space between the word 'session-factory' and 'name'

So,after generate the configuration file ,I had to correct it manul!

Had anyone been report it?

Best Regards!


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 04, 2005 10:25 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
Check JIRA and if no entry add one - Thanks.


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.