-->
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: can i put multiple mapping resource in a single cfg file ?
PostPosted: Mon Oct 12, 2009 12:38 pm 
Newbie

Joined: Thu Sep 24, 2009 11:49 am
Posts: 8
<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory>
<property name="hibernate.connection.driver_class">oracle.jdbc.driver.OracleDriver</property>
<property name="hibernate.connection.url">jdbc:oracle:thin:@localhost:1521:ORCL</property>
<property name="hibernate.connection.username">IC</property>
<property name="hibernate.connection.password">IC</property>
<property name="hibernate.connection.pool_size">10</property>
<property name="show_sql">true</property>
<property name="dialect">org.hibernate.dialect.Oracle9iDialect</property>
<!--<property name="hibernate.hbm2ddl.auto">create</property>-->
<!--<property name="hibernate.hbm2ddl.auto"></property>-->
<property name="hibernate.current_session_context_class">org.hibernate.context.ThreadLocalSessionContext</property>

<!-- Mapping files -->
<mapping resource="contact/contact.hbm.xml"/>
<mapping resource="contact/contact1.hbm.xml"/>

</session-factory>
</hibernate-configuration>


Top
 Profile  
 
 Post subject: Re: can i put multiple mapping resource in a single cfg file ?
PostPosted: Mon Oct 12, 2009 1:03 pm 
Newbie

Joined: Sun Oct 11, 2009 2:43 am
Posts: 7
Yes You can put as many mapping files,as you want.There is no restriction.


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.