<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Latest posts for the topic "The dialect was not set"]]></title>
		<link>http://forums.visual-paradigm.com/posts/32.html</link>
		<description><![CDATA[Latest messages posted in the topic "The dialect was not set"]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>The dialect was not set</title>
				<description><![CDATA[ Hi, I have an ERD diagram, and I am trying to generate a C# library to be used in an application. It uses MySQL.<br> <br> All the process is ok, except, if I use a form to do any changes to the DB, I get the exception: "The dialect was not set. Set the property hibernate.dialect."<br> in the folowing row:  <br> <table class="code-table-simple" align="center">
		<tr> 
		<td><span class="genmed"><b>Code:</b></span></td>
		</tr>
		</table>
		<table class="code-table" align="center">
		<tr>
		<td class="code">
		<pre> 	private DataStoragePersistentManager&#40;&#41; : base&#40;_connectionSetting, _sessionType&#41; {
 		} </pre></td>
		</tr>
		</table> <br> <br> Can anyone tell me how to try to get rid of this, or that another information may help? P.S. in the xml file the dialect is set...]]></description>
				<guid isPermaLink="true">http://forums.visual-paradigm.com/posts/1785#6811.html</guid>
				<link>http://forums.visual-paradigm.com/posts/1785#6811.html</link>
				<pubDate><![CDATA[Tue, 28 Nov 2006 05:07:58]]></pubDate>
				<author><![CDATA[ ik]]></author>
			</item>
			<item>
				<title>Re:The dialect was not set</title>
				<description><![CDATA[ Hi ik,<br> <br> Please make sure the mapping XML file (xxxx.cfg.xml) is put correct. It should either embed in the dll/exe or place in working directory.<br> <br> Best regards,<br> Jick]]></description>
				<guid isPermaLink="true">http://forums.visual-paradigm.com/posts/1785#6820.html</guid>
				<link>http://forums.visual-paradigm.com/posts/1785#6820.html</link>
				<pubDate><![CDATA[Tue, 28 Nov 2006 12:00:32]]></pubDate>
				<author><![CDATA[ Jick]]></author>
			</item>
			<item>
				<title>The dialect was not set</title>
				<description><![CDATA[ Oh, thanks, I have found my mistake. Sorry to take your time ;)]]></description>
				<guid isPermaLink="true">http://forums.visual-paradigm.com/posts/1785#6935.html</guid>
				<link>http://forums.visual-paradigm.com/posts/1785#6935.html</link>
				<pubDate><![CDATA[Sun, 3 Dec 2006 07:47:56]]></pubDate>
				<author><![CDATA[ ik]]></author>
			</item>
			<item>
				<title>Re:The dialect was not set</title>
				<description><![CDATA[ I had this same problem as well. The solution for this is on page 2-11 (Step 14) of the DB-VA Programmer's Guide for .NET. A better solution than copying it manually would be:<br> <br> VISUAL STUDIO 2005 <br> 1. Copy it to the project directory<br> 2. App -> Project -> Add -> Existing Item<br> 3. Select "hibernate.cfg.xml"<br> 4. In "hibernate.cfg.xml" properties<br>     a. change Build Action to "None"<br>     b. change Copy to Output Directory to "Always"<br> <br> Embedding the hibernate.cfg.xml as a resource did not work for me in Visual Studio 2005.<br> <br> -b]]></description>
				<guid isPermaLink="true">http://forums.visual-paradigm.com/posts/1785#8403.html</guid>
				<link>http://forums.visual-paradigm.com/posts/1785#8403.html</link>
				<pubDate><![CDATA[Sat, 6 Jan 2007 07:35:09]]></pubDate>
				<author><![CDATA[ bdubs]]></author>
			</item>
			<item>
				<title>Re:The dialect was not set</title>
				<description><![CDATA[ Actually, I just updated my db schema, and realized that the .xml file didn't update. Adding a line like this to the post-build step is the best way to go:<br> <br>  <table class="code-table-simple" align="center">
		<tr> 
		<td><span class="genmed"><b>Code:</b></span></td>
		</tr>
		</table>
		<table class="code-table" align="center">
		<tr>
		<td class="code">
		<pre> copy &#36;&#40;SolutionDir&#41;..\VisualParadigm\src\hibernate.cfg.xml &#36;&#40;TargetDir&#41; </pre></td>
		</tr>
		</table> ]]></description>
				<guid isPermaLink="true">http://forums.visual-paradigm.com/posts/1785#8991.html</guid>
				<link>http://forums.visual-paradigm.com/posts/1785#8991.html</link>
				<pubDate><![CDATA[Thu, 11 Jan 2007 14:48:11]]></pubDate>
				<author><![CDATA[ bdubs]]></author>
			</item>
	</channel>
</rss>