-->
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.  [ 1 post ] 
Author Message
 Post subject: connection_string configuration property
PostPosted: Mon Oct 01, 2007 10:39 am 
Newbie

Joined: Wed Jul 25, 2007 11:39 am
Posts: 11
Hello!

I'm having problems with hibernate.cfg.xml document.
This version works fine:

<?xml version="1.0" encoding="iso-8859-1"?>
<hibernate-configuration xmlns="urn:nhibernate-configuration-2.0">
<session-factory xmlns='urn:nhibernate-configuration-2.2'>
<property name="dialect">NHibernate.Dialect.MySQLDialect</property>
<property name="connection.provider">NHibernate.Connection.DriverConnectionProvider</property>
<property name="connection.driver_class">NHibernate.Driver.MySqlDataDriver</property>
<property name="connection.connection_string">Server=localhost;Database=my_db;User ID=my_user;Password=my_pass</property>
</session-factory>
</hibernate-configuration>

What I wanna do is change "connection.connection_string" property's value to something like "Data Source=my_ds".

Anyone knows how to make it work ?
Thanks!


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

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.