[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
Fri May 15 08:03:46 EDT 2009


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

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

    Description: 
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?

  was:
When my entities are mapped only in orm.xml, they do not have the @Entity annotation, and I use a one <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?

         Labels: orm xml  (was: xml)


> 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
>
> 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