This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread 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 Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Unable to remove entity" Watch "Unable to remove entity" New topic

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?
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.
I agree. Here's the link:
subject: Unable to remove entity
Similar Threads
deleting causes : not-null property references a null or transient value
Outer join between 3 entities in HQL
using 2 @OnetoMany annoations in one Entity Class
Edit primary key, if it's a foreign key
Update OneToMany relation