[jbossseam-issues] [JBoss JIRA] Updated: (JBSEAM-4180) Error in <s:convertEntity/> when orm.xml is the only mechanism for persistence

Cristian Fabiano (JIRA) jira-events at lists.jboss.org
Wed May 27 16:28:56 EDT 2009


     [ https://jira.jboss.org/jira/browse/JBSEAM-4180?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Cristian Fabiano updated JBSEAM-4180:
-------------------------------------

    Attachment: jpa.rar


This test case is based on the hotel booking example. It runs on tomcat 6 and was done with the Eclipse. 
First search for the hotels available with the ajax button, and then use the link to refresh the page. The h:selectOneMenu containing a <s:convertEntity/> will cause the exception.

> Error in <s:convertEntity/> when orm.xml is the only mechanism for persistence
> ------------------------------------------------------------------------------
>
>                 Key: JBSEAM-4180
>                 URL: https://jira.jboss.org/jira/browse/JBSEAM-4180
>             Project: Seam
>          Issue Type: Bug
>    Affects Versions: 2.1.1.GA
>         Environment: Windows XP SP2
>            Reporter: Cristian Fabiano
>         Attachments: jpa.rar
>
>
> When my entities are mapped only in orm.xml, they do not have the @Entity annotation, and I use <s:convertEntity/> with one, I got the exception:
> org.jboss.seam.Entity $ NotEntityException: Unable to establish name of entity class com.emmsistemas.emmvendas.entidade.Grupo
> my orml.xml for this Entity:
>     <entity class="com.emmsistemas.emmvendas.entidade.Grupo">
>     	<table name="GRUPO"></table>
>     	<attributes>
>     		<id name="id">
>     			<column name="gru_id"/>
>     			<generated-value strategy="IDENTITY"/>
>     		</id>
>     		<basic name="nome">
>     			<column name="gru_nome"/>
>     		</basic>
>     		<basic name="descricao">
>     			<column name="gru_descricao"/>
>     		</basic>
>     		<basic name="condicional">
>     			<column name="gru_condicional"/>
>     		</basic>
>     	</attributes>
>     </entity>
> 	
> Seam does not recognize the Entity when it not have a @Entity?

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the seam-issues mailing list