This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan 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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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
Update OneToMany relation
using 2 @OnetoMany annoations in one Entity Class
Outer join between 3 entities in HQL
Edit primary key, if it's a foreign key
deleting causes : not-null property references a null or transient value