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: REVERSE DB - LEFT SCHEMA E TABLE ATTRIBUTES FROM HBM FILES
PostPosted: Wed Oct 25, 2006 9:42 am 
Newbie

Joined: Mon Oct 23, 2006 1:17 pm
Posts: 5
Hi all,
now I'm able to generate hbm files from db tables with ant tools.
Now i would like left from hbm files generated the attribute schema e table from the "class" element.

How I can do this ?



<hibernate-mapping>
<class name="it.sailing.hb.hbo.MYTABLE" table="MYTABLE" schema="LABPROD">
<composite-id name="id" class="it.myfactory.hb.hbo.tableId">
<key-property name="idproc" type="string">
<column name="IDPROC" length="30" />
</key-property>
<key-property name="idrec" type="long">

..................


Regards - Thomas.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 26, 2006 2:18 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
you mean you don't want hibernate to put the schema name into your mapping files ?

You do that by setting hibernate.default_schema so hibernate knows which schema is going to work as the default.

_________________
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.  [ 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.