jason_bourne 5 de agosto de 2008
Pessoal,
Não consigo transformar um atributo da minha entidade como @Id (codItem). Mesmo ele sendo uma PK da tabela. Alguém tem alguma idéia do que pode ser? Estou usando EJB remote também.
Caused by: org.hibernate.MappingException: property not found: codItem on entity br.com.xxx.yyyy.integration.domain.ItemAtributoItemDomain
at org.hibernate.mapping.PersistentClass.getProperty(PersistentClass.java:377)
at org.hibernate.mapping.PersistentClass.getProperty(PersistentClass.java:382)
at org.hibernate.cfg.annotations.TableBinder.bindFk(TableBinder.java:159)
at org.hibernate.cfg.annotations.CollectionBinder.bindCollectionSecondPass(CollectionBinder.java:879)
at org.hibernate.cfg.annotations.CollectionBinder.bindOneToManySecondPass(CollectionBinder.java:477)
at org.hibernate.cfg.annotations.CollectionBinder.bindStarToManySecondPass(CollectionBinder.java:408)
at org.hibernate.cfg.annotations.CollectionBinder$1.secondPass(CollectionBinder.java:382)
at org.hibernate.cfg.CollectionSecondPass.doSecondPass(CollectionSecondPass.java:35)
at org.hibernate.cfg.Configuration.secondPassCompile(Configuration.java:1012)
at org.hibernate.cfg.AnnotationConfiguration.secondPassCompile(AnnotationConfiguration.java:238)
at org.hibernate.cfg.Configuration.buildMappings(Configuration.java:997)
at org.hibernate.ejb.Ejb3Configuration.buildMappings(Ejb3Configuration.java:722)
at org.hibernate.ejb.EventListenerConfigurator.configure(EventListenerConfigurator.java:161)
at org.hibernate.ejb.Ejb3Configuration.createEntityManagerFactory(Ejb3Configuration.java:567)
at org.hibernate.ejb.Ejb3Configuration.createContainerEntityManagerFactory(Ejb3Configuration.java:245)
at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:108)
at org.jboss.ejb3.entity.PersistenceUnitDeployment.start(PersistenceUnitDeployment.java:231)
… 80 more