• Post Reply Bookmark Topic Watch Topic
  • New Topic

Error insert JSF/JPA  RSS feed

 
Rene Ribeiro
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Good afternoon,

I am developing code to delete JSF / JPA, but displays the following error.














 
Tim Holloway
Bartender
Posts: 18662
71
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When you have JPA/EJB problems with JSF, it's a good idea to debug them in a non-JSF test environment. JSF has not interactions with databases, but the extra complexity of working within a web framework makes it harder to see what's wrong.

I believe that this is the culprit:


You are telling the persistence manager to remove a persistence entity of type "Long", where you should be attempting to be removing a persistence entity of type "Pacient".

In other words:

 
Rene Ribeiro
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
this resolved.

Thanks!

 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!