-->
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: hbm.xml file generation
PostPosted: Tue Mar 27, 2007 5:41 am 
Newbie

Joined: Thu Nov 30, 2006 10:44 am
Posts: 6
Location: Moscow
Hello!

Hibernate version: 3.1.3 + Tools beta 9.0

Mapping documents:
<class name="com.bubsw.sd.link.model.Account" table="account" schema="dbo" catalog="BEQUEST">
...</class>

Name and version of the database you are using: MS SQL 2000 SP4


Have no idea how to get rid of schema="..." and catalog="..." in generated hbm.xml files.

I'm using Hibernate Eclipse tools beta9.0 with 'Use custom templates' option on. Before hibernate-tools.jar has been unpacked and *.flt files have been copied to the separate directory. I've removed catalog and schema from them but it's still generated in hbm.xml files.

Please help.

Kind regards,
Alex


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 27, 2007 9:16 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
set default_schema and default_catalog then it won't be used when generating.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 27, 2007 10:32 am 
Newbie

Joined: Thu Nov 30, 2006 10:44 am
Posts: 6
Location: Moscow
max wrote:
set default_schema and default_catalog then it won't be used when generating.


Max, thank you for your response.
The only question is why *.flt specified in the Template directory doesn't work?

Thank you,
Alex

_________________
--------------------------
Kind regards,
Alex


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 27, 2007 10:41 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
maybe because they are not in the proper directories ?

e.g. templatedir/pojo/*.ftl and not just templatedir/*.ftl

_________________
Max
Don't forget to rate


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.