<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:admin="http://webns.net/mvcb/"
	xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
		
	<channel>
		<title>Hibernate Community - Forums > NHibernate Users</title>
		<link>https://forum.hibernate.org/index.php</link>
	<!--<atom:link href="https://forum.hibernate.org/index.php" rel="alternate" type="application/rss+xml" />-->
		<description>Hibernate Community Forums</description>
		<language>en-gb</language>
		<copyright>Copyright (c) 2003 Hibernate Community</copyright>
		<managingEditor>webmaster@hibernate.org (Hibernate Community)</managingEditor>
		<webMaster>webmaster@hibernate.org (Hibernate Community)</webMaster>
		<pubDate>Tue, 14 Jul 2020 00:00:00 -0500</pubDate>
		<lastBuildDate>Tue, 14 Jul 2020 08:22:55 -0500</lastBuildDate>
		<generator>MSSTI RSS Feed 2.0 Version 1.0.9 - (C) 2008-2009 leviatan21 - http://www.mssti.com/</generator>

		<image>
			<title>Hibernate Community - Forums > NHibernate Users</title>
			<url>https://forum.hibernate.org/styles/hibernate/imageset/site_logo.gif</url>
			<link>https://forum.hibernate.org/index.php</link>
		</image>
		<ttl>60</ttl>
		
			<item>
			<title>NHibernate Users | Optimistic locking failed</title>
			<link>https://forum.hibernate.org/viewtopic.php?p=2463639#p2463639</link>
				<description><![CDATA[  Getting Optimistic locking failed ; staleobjectstateException : Row was updated or deleted by another transaction(or unsaved-value mapping was correct) error for child object.<br /><br />Have a parent ITEM object and child STOREROOM object. parent to child is many-to-one and hibernate mapping file has cascade=all.<br /><br />Have JMS fire each item record and item inser or update storeroom record. Since each JMS record is a transaction and commits happens at the end of each item, it looks like multiple thread is accessing<br />...<hr />]]></description>
					<content:encoded><![CDATA[  Getting Optimistic locking failed ; staleobjectstateException : Row was updated or deleted by another transaction(or unsaved-value mapping was correct) error for child object.<br /><br />Have a parent ITEM object and child STOREROOM object. parent to child is many-to-one and hibernate mapping file has cascade=all.<br /><br />Have JMS fire each item record and item inser or update storeroom record. Since each JMS record is a transaction and commits happens at the end of each item, it looks like multiple thread is accessing<br />...]]></content:encoded>
		<guid isPermaLink="false">https://forum.hibernate.org/viewtopic.php?p=2463639#p2463639</guid>		</item>
			<item>
			<title>NHibernate Users | Re: Identity column - &quot;Cannot update identity column&quot;</title>
			<link>https://forum.hibernate.org/viewtopic.php?p=2463477#p2463477</link>
				<description><![CDATA[Thanks for posting the solution!!! Had the same problem.<hr />]]></description>
					<content:encoded><![CDATA[Thanks for posting the solution!!! Had the same problem.]]></content:encoded>
		<guid isPermaLink="false">https://forum.hibernate.org/viewtopic.php?p=2463477#p2463477</guid>		</item>
			<item>
			<title>NHibernate Users | Migration from JoinedSubclass to UnionSubclass</title>
			<link>https://forum.hibernate.org/viewtopic.php?p=2463373#p2463373</link>
				<description><![CDATA[Hi<br /><br />Due to a performance issue we are planning to migrate our structure from &quot;JoinedSubclasses&quot; to &quot;UnionSubclasses&quot;. We have severals classes (about 50) which are derived from one baseclass and mapped as JoinedSubclass. And now we want to migrate these classes to &quot;UnionSubclass-mapping&quot;. Has anybody an idea or experience how to migrate it?<br /><br />Any help would be appreciated.<br />Daywalker<hr />]]></description>
					<content:encoded><![CDATA[Hi<br /><br />Due to a performance issue we are planning to migrate our structure from &quot;JoinedSubclasses&quot; to &quot;UnionSubclasses&quot;. We have severals classes (about 50) which are derived from one baseclass and mapped as JoinedSubclass. And now we want to migrate these classes to &quot;UnionSubclass-mapping&quot;. Has anybody an idea or experience how to migrate it?<br /><br />Any help would be appreciated.<br />Daywalker]]></content:encoded>
		<guid isPermaLink="false">https://forum.hibernate.org/viewtopic.php?p=2463373#p2463373</guid>		</item>
			<item>
			<title>NHibernate Users | How to map foreign key constraints</title>
			<link>https://forum.hibernate.org/viewtopic.php?p=2463196#p2463196</link>
				<description><![CDATA[  Hello Frnds,<br /><br />My Product table have one foreign key CategoryId . I don't know how to Map this table &amp; how to insert CategoryId into Product Table. I am Posting my Code but It gives me runtime error.<br /><br />Products.hbm.xml file<br /><br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">&nbsp; &lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot; ?&gt;<br />&lt;hibernate-mapping xmlns=&quot;urn:nhibernate-mapping-2.2&quot; namespace=&quot;Test_NHibernate_Join_Tables&quot; assembly=&quot;Test_NHibernate_Join_Tables&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &gt;<br />&nbsp; &lt;class</div><br />...<hr />]]></description>
					<content:encoded><![CDATA[  Hello Frnds,<br /><br />My Product table have one foreign key CategoryId . I don't know how to Map this table &amp; how to insert CategoryId into Product Table. I am Posting my Code but It gives me runtime error.<br /><br />Products.hbm.xml file<br /><br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">&nbsp; &lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot; ?&gt;<br />&lt;hibernate-mapping xmlns=&quot;urn:nhibernate-mapping-2.2&quot; namespace=&quot;Test_NHibernate_Join_Tables&quot; assembly=&quot;Test_NHibernate_Join_Tables&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &gt;<br />&nbsp; &lt;class</div><br />...]]></content:encoded>
		<guid isPermaLink="false">https://forum.hibernate.org/viewtopic.php?p=2463196#p2463196</guid>		</item>
			<item>
			<title>NHibernate Users | very ¿simple? question</title>
			<link>https://forum.hibernate.org/viewtopic.php?p=2457922#p2457922</link>
				<description><![CDATA[  Hi, I'm trying to make a set with special needs and I have read a lot of page without luck.<br /><br />Lets suppose that I have a mapping of a Sql View<br /><br />&lt;class name=&quot;Namespace.ViewName, Assembly&quot; table=&quot;ViewName&quot;&gt;<br /><br />    &lt;id name=&quot;MyColumnIdOfThisView&quot;column=&quot;[MyColumnIdOfThisView] &quot; type=&quot;System.Guid&quot;&gt;<br />      &lt;generator class=&quot;assigned&quot;/&gt;<br />    &lt;/id&gt;<br />    &lt;property name=&quot;AForeignKey&quot;column=&quot;[AForeignKey] &quot; access=&quot;field.pascalcase-underscore&quot;<br />...<hr />]]></description>
					<content:encoded><![CDATA[  Hi, I'm trying to make a set with special needs and I have read a lot of page without luck.<br /><br />Lets suppose that I have a mapping of a Sql View<br /><br />&lt;class name=&quot;Namespace.ViewName, Assembly&quot; table=&quot;ViewName&quot;&gt;<br /><br />    &lt;id name=&quot;MyColumnIdOfThisView&quot;column=&quot;[MyColumnIdOfThisView] &quot; type=&quot;System.Guid&quot;&gt;<br />      &lt;generator class=&quot;assigned&quot;/&gt;<br />    &lt;/id&gt;<br />    &lt;property name=&quot;AForeignKey&quot;column=&quot;[AForeignKey] &quot; access=&quot;field.pascalcase-underscore&quot;<br />...]]></content:encoded>
		<guid isPermaLink="false">https://forum.hibernate.org/viewtopic.php?p=2457922#p2457922</guid>		</item>
			<item>
			<title>NHibernate Users | Re: using c# doubles with SQL Server &quot;floats&quot;</title>
			<link>https://forum.hibernate.org/viewtopic.php?p=2457769#p2457769</link>
				<description><![CDATA[ <div class="quotetitle">nils.andresen wrote:</div><div class="quotecontent"><br />Hi.<br />I am using NH to map c#-<span style="font-style: italic">double</span> values into SQL Server 2005 as <span style="font-style: italic">floats</span>. Everything works perfectly fine. However, recently I tried running the SchemaValidator.<br /><br />SchemaValidator fails:<br /><br /><div class="quotetitle"><b>Quote:</b></div><div class="quotecontent">Found: float, Expected DOUBLE PRECISION<br /></div> <br /><br />Creating the tables using<span style="font-style: italic">DOUBLE PRECISION</span>  works, but SQL Server will report the columns as<span style="font-style: italic">float</span> <br /><br />Am I missing something here, or is this a (minor) bug in NHibernates type-Mapping?<br /><br />Nils</div></div> xact answer , try look this c# <!-- m --><a class="postlink" href="http://csharp.net-informations.com">http://csharp.net-informations.com</a><!--<br />...<hr />]]></description>
					<content:encoded><![CDATA[ <div class="quotetitle">nils.andresen wrote:</div><div class="quotecontent"><br />Hi.<br />I am using NH to map c#-<span style="font-style: italic">double</span> values into SQL Server 2005 as <span style="font-style: italic">floats</span>. Everything works perfectly fine. However, recently I tried running the SchemaValidator.<br /><br />SchemaValidator fails:<br /><br /><div class="quotetitle"><b>Quote:</b></div><div class="quotecontent">Found: float, Expected DOUBLE PRECISION<br /></div> <br /><br />Creating the tables using<span style="font-style: italic">DOUBLE PRECISION</span>  works, but SQL Server will report the columns as<span style="font-style: italic">float</span> <br /><br />Am I missing something here, or is this a (minor) bug in NHibernates type-Mapping?<br /><br />Nils</div></div> xact answer , try look this c# <!-- m --><a class="postlink" href="http://csharp.net-informations.com">http://csharp.net-informations.com</a><!--<br />...]]></content:encoded>
		<guid isPermaLink="false">https://forum.hibernate.org/viewtopic.php?p=2457769#p2457769</guid>		</item>
			<item>
			<title>NHibernate Users | Re: Mapping ORACLE TIMESTAMP(9) field to java.util.Date</title>
			<link>https://forum.hibernate.org/viewtopic.php?p=2457695#p2457695</link>
				<description><![CDATA[As I posted on StackOverflow, just disable schema validation.  Thats where this exception arises.<hr />]]></description>
					<content:encoded><![CDATA[As I posted on StackOverflow, just disable schema validation.  Thats where this exception arises.]]></content:encoded>
		<guid isPermaLink="false">https://forum.hibernate.org/viewtopic.php?p=2457695#p2457695</guid>		</item>
			<item>
			<title>NHibernate Users | Nhibernate not update data to database</title>
			<link>https://forum.hibernate.org/viewtopic.php?p=2457667#p2457667</link>
				<description><![CDATA[THis is my code;<br />Public Overridable Sub SaveOrUpdate(Optional ByVal flush As Boolean = False)<br />Dim sess As NHibernate.ISession = SessionManagement.GetCurrentSession<br />sess.SaveOrUpdate(Me)<br />If flush Then<br />sess.Flush()<br />End If<br />End Sub<br /><br />Data update to session but not update to database after sess.flush(). And there are not any errors.<br />It happen when update only and some table.<br /><br />How can I do?<hr />]]></description>
					<content:encoded><![CDATA[THis is my code;<br />Public Overridable Sub SaveOrUpdate(Optional ByVal flush As Boolean = False)<br />Dim sess As NHibernate.ISession = SessionManagement.GetCurrentSession<br />sess.SaveOrUpdate(Me)<br />If flush Then<br />sess.Flush()<br />End If<br />End Sub<br /><br />Data update to session but not update to database after sess.flush(). And there are not any errors.<br />It happen when update only and some table.<br /><br />How can I do?]]></content:encoded>
		<guid isPermaLink="false">https://forum.hibernate.org/viewtopic.php?p=2457667#p2457667</guid>		</item>
			<item>
			<title>NHibernate Users | How to write Dynamic Nhibernate Query and to check in Asp.ne</title>
			<link>https://forum.hibernate.org/viewtopic.php?p=2457619#p2457619</link>
				<description><![CDATA[Hi All,<br /><br />I am new to Nhibernate. I have a task to check the Dynamic Sql Query where I have to map the tables and also the records.<br /><br />I need some help and suggestions on how can I map and also to check the Dynamic Sql Query iin Asp.net.<br /><br />Please help me.<hr />]]></description>
					<content:encoded><![CDATA[Hi All,<br /><br />I am new to Nhibernate. I have a task to check the Dynamic Sql Query where I have to map the tables and also the records.<br /><br />I need some help and suggestions on how can I map and also to check the Dynamic Sql Query iin Asp.net.<br /><br />Please help me.]]></content:encoded>
		<guid isPermaLink="false">https://forum.hibernate.org/viewtopic.php?p=2457619#p2457619</guid>		</item>
			<item>
			<title>NHibernate Users | ManyToMany relationship issue</title>
			<link>https://forum.hibernate.org/viewtopic.php?p=2456612#p2456612</link>
				<description><![CDATA[  Dear All,<br /><br />I have a problem when saving a object to the database. I'm using C# and Sql Server.<br />My domain objects are:<br /><br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">&nbsp; public class UserSpecialization : PersonSpecialization, IUserSpecialization<br />{<br />&nbsp; &nbsp; public static readonly string SpecializationNameValue = &quot;User&quot;;<br /><br />&nbsp; &nbsp; public UserSpecialization()<br />&nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; Roles = new Collection&lt;IRole&gt;();<br />&nbsp; &nbsp; }<br /><br />&nbsp; &nbsp; public virtual IEnumerable&lt;IRole&gt; Roles<br />&nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; get;<br />&nbsp; &nbsp; &nbsp; &nbsp; set;<br />&nbsp; &nbsp; }<br />}<br /><br />public abstract class PersonSpecialization</div><br />...<hr />]]></description>
					<content:encoded><![CDATA[  Dear All,<br /><br />I have a problem when saving a object to the database. I'm using C# and Sql Server.<br />My domain objects are:<br /><br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">&nbsp; public class UserSpecialization : PersonSpecialization, IUserSpecialization<br />{<br />&nbsp; &nbsp; public static readonly string SpecializationNameValue = &quot;User&quot;;<br /><br />&nbsp; &nbsp; public UserSpecialization()<br />&nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; Roles = new Collection&lt;IRole&gt;();<br />&nbsp; &nbsp; }<br /><br />&nbsp; &nbsp; public virtual IEnumerable&lt;IRole&gt; Roles<br />&nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; get;<br />&nbsp; &nbsp; &nbsp; &nbsp; set;<br />&nbsp; &nbsp; }<br />}<br /><br />public abstract class PersonSpecialization</div><br />...]]></content:encoded>
		<guid isPermaLink="false">https://forum.hibernate.org/viewtopic.php?p=2456612#p2456612</guid>		</item>
	
	</channel>
</rss>