Erro com jpa

3 respostas
xxjamisxx

alguem saber me dizer que erro é este no jpa?

NewWebService listening at address at http://localhost:8080/Ecommerce/NewWebServiceService SEVERE: Exception while invoking class org.glassfish.persistence.jpa.JPADeployer prepare method javax.persistence.PersistenceException: Exception [EclipseLink-28018] (Eclipse Persistence Services - 2.0.0.v20091127-r5931): org.eclipse.persistence.exceptions.EntityManagerSetupException Exception Description: Predeployment of PersistenceUnit [EcommercePU] failed. Internal Exception: Exception [EclipseLink-7244] (Eclipse Persistence Services - 2.0.0.v20091127-r5931): org.eclipse.persistence.exceptions.ValidationException Exception Description: An incompatible mapping has been encountered between [class br.com.entity.SellItem] and [class br.com.entity.Sell]. This usually occurs when the cardinality of a mapping does not correspond with the cardinality of its backpointer. at org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.predeploy(EntityManagerSetupImpl.java:986) at org.eclipse.persistence.jpa.PersistenceProvider.createContainerEntityManagerFactory(PersistenceProvider.java:202) at org.glassfish.persistence.jpa.PersistenceUnitLoader.loadPU(PersistenceUnitLoader.java:181) at org.glassfish.persistence.jpa.PersistenceUnitLoader.<init>(PersistenceUnitLoader.java:96)

3 Respostas

davidbuzatto

xxjamisxx, por favor, fique atento ao palavreado que está usando.
Dei uma limpada no seu stack trace, está deixando o tópico muito lento.

Se você ler o erro, vai ver onde está o problema.

An incompatible mapping has been encountered between [[color=red]class br.com.entity.SellItem[/color]] and [[color=red]class br.com.entity.Sell[/color]]. This usually occurs when the cardinality of a mapping does not correspond with the cardinality of its backpointer.

[]´s

xxjamisxx

desculpa modo de fala vlw nao tinha visto isso
^^

davidbuzatto

xxjamisxx:
desculpa modo de fala vlw nao tinha visto isso
^^

Sem problema :wink:
Conseguiu resolver o problema?
Se não, poste as classes Sell e SellItem para eu ver como você está anotando cada uma delas.

[]´s

Criado 12 de novembro de 2010
Ultima resposta 12 de nov. de 2010
Respostas 3
Participantes 2