<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Latest posts for the topic "CascadeStyle bug in ORM mapping files (NET only)"]]></title>
		<link>http://forums.visual-paradigm.com/posts/32.html</link>
		<description><![CDATA[Latest messages posted in the topic "CascadeStyle bug in ORM mapping files (NET only)"]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>CascadeStyle bug in ORM mapping files (NET only)</title>
				<description><![CDATA[ Hi VP,<br> <br> I have found a bug in the ORM mapping files, related to "cascadestyle" setting. I'm using DB-VA 4.1 sp1 20071116a.<br> <br> When working with a model like the attached image, here are the mapping results:<br> <br> * class2.hbm.xml relation with class1 mapping is (omitting details):<br> <many-to-one ... cascade="save-update" ... ><br> It's ok!!  :D <br> <br> * class3.hbm.xml relation with class1 mapping is (omitting details):<br> <many-to-one ... cascade="save-update" ... ><br> It's ok!! :D<br> <br> But, the mapping for Class1 is:<br> <one-to-one name="Class2" ... cascade="all-delete-orphan" ... /><br> <one-to-one name="Class3" ... cascade="save-update,delete" ... /><br> Oops... it's not ok  :shock: <br> <br> That last "save-update,delete" produces a PersistentExcepcion when initializing NHibernate.  :oops: Combined cascades are not supported in NHibernate 1.2 (I think that they are only on Hibernate 3.x, but not sure).<br> <br> So, the only available cascade types on NHibernate (.NET) are:<br> "all", "all-delete-orphan", "none", "save-update", "delete" and "delete-orphan"  :( <br> <br> What can we do? Use a less efficient "all-delete-orphan" explicitly on the ORM Association End Detail? or maybe the generator should know about this when building NET code?]]></description>
				<guid isPermaLink="true">http://forums.visual-paradigm.com/posts/2613#19970.html</guid>
				<link>http://forums.visual-paradigm.com/posts/2613#19970.html</link>
				<pubDate><![CDATA[Sun, 4 Nov 2007 03:43:27]]></pubDate>
				<author><![CDATA[ distansia]]></author>
			</item>
			<item>
				<title>Re:CascadeStyle bug in ORM mapping files (NET only)</title>
				<description><![CDATA[ Hello distansia,<br> <br> Thank you for your post. I will let our engineers know about this problem.<br> <br> Best regards,<br> Jick<br> ]]></description>
				<guid isPermaLink="true">http://forums.visual-paradigm.com/posts/2613#19984.html</guid>
				<link>http://forums.visual-paradigm.com/posts/2613#19984.html</link>
				<pubDate><![CDATA[Mon, 5 Nov 2007 09:02:28]]></pubDate>
				<author><![CDATA[ Jick]]></author>
			</item>
			<item>
				<title>Re:CascadeStyle bug in ORM mapping files (NET only)</title>
				<description><![CDATA[ Hello distansia,<br> <br> This problem has been fixed. Please download and install the patch at:<br> <a href="http://files3.visual-paradigm.com/200711/Patch/sp1_20071116e/VP_Suite_Windows_3_1_sp1_20071116e.exe" target="_blank" rel="nofollow">http://files3.visual-paradigm.com/200711/Patch/sp1_20071116e/VP_Suite_Windows_3_1_sp1_20071116e.exe</a><br> <br> Hope this helps!<br> <br> Best regards,<br> Jick]]></description>
				<guid isPermaLink="true">http://forums.visual-paradigm.com/posts/2613#19989.html</guid>
				<link>http://forums.visual-paradigm.com/posts/2613#19989.html</link>
				<pubDate><![CDATA[Mon, 5 Nov 2007 18:32:02]]></pubDate>
				<author><![CDATA[ Jick]]></author>
			</item>
	</channel>
</rss>