<?xml version="1.0" encoding="ISO-8859-1"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Últimas mensagens do tópico "org.hibernate.HibernateException: identifier of an instance of ..."]]></title>
		<link>http://www.guj.com.br/posts/list/6.java</link>
		<description><![CDATA[Últimas mensagens enviadas no tópico "org.hibernate.HibernateException: identifier of an instance of ..."]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>org.hibernate.HibernateException: identifier of an instance of ...</title>
				<description><![CDATA[ Boa noite,<br /> <br /> Sou iniciante no desenvolvimento usando Jboss Seam, e gostaria de uma ajuda para resolver esse problema. Tenho 2 entities (EntityField e Rule) com relacionamento ManyToOne. Na pagina de edição das Rules existe um selectonemenu no qual seleciono o EntityField. Até ai tudo funciona perfeitamente.<br /> <br /> Porém quando vou persistir o objeto Rule recebo o seguinte exception: <br /> org.hibernate.HibernateException: identifier of an instance of ...EntityField was altered from 7 to 1<br /> <br /> A impressão que tenho é que o hibernate tenta persistir o objeto EntityField também...<br /> <br /> [b]EditRule.xhtml[/b]<br /> [code]<br /> 	    		&lt;h:selectOneMenu id="entityField" value="#{rule.entityField.id}" styleClass="textfield" tabindex="0" &gt;<br /> 					&lt;s:selectItems value="#{entityFields}" var="entityField" label="#{entityField.fieldDef.name}" itemValue="#{entityField.id}" noSelectionLabel="select one..."/&gt;<br /> 			&lt;/h:selectOneMenu&gt;<br /> [/code]<br /> <br /> [b]Rule:[/b]<br /> [code]<br /> @Entity<br /> @Name("rule")<br /> @Scope(ScopeType.CONVERSATION)<br /> ....<br /> <br /> 	@ManyToOne<br /> 	@JoinColumn(name="ENTITY_FIELD_ID")<br /> 	public EntityField getEntityField() <br /> 	{<br /> 		return entityField;<br /> 	}<br /> 	public void setEntityField(EntityField entityField) <br /> 	{<br /> 		this.entityField = entityField;<br /> 	}<br /> 	<br /> [/code]<br /> <br /> <br /> Alguém pode me ajudar por favor, já estou a horas nesse problema e ainda nada... Muito obrigado.<br /> <br /> []s]]></description>
				<guid isPermaLink="true">http://www.guj.com.br/prepost/200560/1010260/orghibernatehibernateexception-identifier-of-an-instance-of-
</guid>
				<link>http://www.guj.com.br/prepost/200560/1010260/orghibernatehibernateexception-identifier-of-an-instance-of-
</link>
				<pubDate><![CDATA[Wed, 10 Mar 2010 23:02:44]]> GMT</pubDate>
				<author><![CDATA[ leodan]]></author>
			</item>
			<item>
				<title>Re:org.hibernate.HibernateException: identifier of an instance of ...</title>
				<description><![CDATA[ Manda esse teu projeto pra mim da uma olhada :<br /> <br />   <a class="snap_shots" href="mailto:web2ajax@gmail.com">web2ajax@gmail.com</a> <br /> <br /> Flw]]></description>
				<guid isPermaLink="true">http://www.guj.com.br/prepost/200560/1010430/reorghibernatehibernateexception-identifier-of-an-instance-of-
</guid>
				<link>http://www.guj.com.br/prepost/200560/1010430/reorghibernatehibernateexception-identifier-of-an-instance-of-
</link>
				<pubDate><![CDATA[Thu, 11 Mar 2010 09:41:46]]> GMT</pubDate>
				<author><![CDATA[ juniorsatanas]]></author>
			</item>
			<item>
				<title>Re:org.hibernate.HibernateException: identifier of an instance of ...</title>
				<description><![CDATA[ [quote=juniorsatanas]Manda esse teu projeto pra mim da uma olhada :<br /> <br />   <a class="snap_shots" href="mailto:web2ajax@gmail.com">web2ajax@gmail.com</a> <br /> <br /> Flw[/quote]<br /> <br /> Bom dia,<br /> <br /> Infelizmente não posso mandar o projeto todo. Será que você consegue me ajudar  com posts apenas de parte do codigo?<br /> <br /> Obrigado.<br /> <br /> []s]]></description>
				<guid isPermaLink="true">http://www.guj.com.br/prepost/200560/1010609/reorghibernatehibernateexception-identifier-of-an-instance-of-
</guid>
				<link>http://www.guj.com.br/prepost/200560/1010609/reorghibernatehibernateexception-identifier-of-an-instance-of-
</link>
				<pubDate><![CDATA[Thu, 11 Mar 2010 11:52:51]]> GMT</pubDate>
				<author><![CDATA[ leodan]]></author>
			</item>
			<item>
				<title>Re:org.hibernate.HibernateException: identifier of an instance of ...</title>
				<description><![CDATA[ Estou removendo o relacionamento ManyToOne, acho que isso não é a melhor pratica e que talvez me traga problemas la na frente... <br /> Então, qualquer outra ideia será muito bem vinda...  <img src="http://www.guj.com.br/images/smilies/283a16da79f3aa23fe1025c96295f04f.gif" border="0"> <br /> <br /> Alguém??????<br /> <br /> Obrigado<br /> <br /> []s]]></description>
				<guid isPermaLink="true">http://www.guj.com.br/prepost/200560/1010646/reorghibernatehibernateexception-identifier-of-an-instance-of-
</guid>
				<link>http://www.guj.com.br/prepost/200560/1010646/reorghibernatehibernateexception-identifier-of-an-instance-of-
</link>
				<pubDate><![CDATA[Thu, 11 Mar 2010 12:43:35]]> GMT</pubDate>
				<author><![CDATA[ leodan]]></author>
			</item>
			<item>
				<title>Re:org.hibernate.HibernateException: identifier of an instance of ...</title>
				<description><![CDATA[ mano como tu vai tirar o relacionamento ? como tu vai mapear as classes ?<br /> ]]></description>
				<guid isPermaLink="true">http://www.guj.com.br/prepost/200560/1010686/reorghibernatehibernateexception-identifier-of-an-instance-of-
</guid>
				<link>http://www.guj.com.br/prepost/200560/1010686/reorghibernatehibernateexception-identifier-of-an-instance-of-
</link>
				<pubDate><![CDATA[Thu, 11 Mar 2010 13:10:11]]> GMT</pubDate>
				<author><![CDATA[ juniorsatanas]]></author>
			</item>
			<item>
				<title>Re:org.hibernate.HibernateException: identifier of an instance of ...</title>
				<description><![CDATA[ Vou mapear apenas na classe EntityField, usando OneToMany, caso realmente precise... A principio não preciso acessar os atributos da classe EntityField  através da Rules... ]]></description>
				<guid isPermaLink="true">http://www.guj.com.br/prepost/200560/1010755/reorghibernatehibernateexception-identifier-of-an-instance-of-
</guid>
				<link>http://www.guj.com.br/prepost/200560/1010755/reorghibernatehibernateexception-identifier-of-an-instance-of-
</link>
				<pubDate><![CDATA[Thu, 11 Mar 2010 14:13:27]]> GMT</pubDate>
				<author><![CDATA[ leodan]]></author>
			</item>
	</channel>
</rss>
