This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Object Relational Mapping and the fly likes Unable to remove entity Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Unable to remove entity" Watch "Unable to remove entity" New topic
Author

Unable to remove entity

Enrico Morelli
Ranch Hand

Joined: Jan 07, 2013
Posts: 30
Dear all,

I've the following entities using eclipse persistence jpa and PostgreSQL:





I'm unable to remove a printer. No error, no warning, but nothing happen.



Where I wrong?
Thanks
James Sutherland
Ranch Hand

Joined: Oct 01, 2007
Posts: 553
Enable logging on finest and check your log for error, and ensure you are not catching and ignoring any errors.

TopLink : EclipseLink : Book:Java Persistence : Blog:Java Persistence Performance
Enrico Morelli
Ranch Hand

Joined: Jan 07, 2013
Posts: 30
I cheked logs, but there aren't error messages.

I post also the jsf and java class that call remove method.





Another strange behaviour is that after pressing the remove button the program render again the printer list (the posted jsf code) instead the user.xhtml page.

I'm using netbeans with all log windows opens.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Unable to remove entity