aspose file tools*
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 Java 8 in Action this week in the Java 8 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.
 
Don't get me started about those stupid light bulbs.
 
subject: Unable to remove entity
 
Similar Threads
Update OneToMany relation
using 2 @OnetoMany annoations in one Entity Class
Edit primary key, if it's a foreign key
Outer join between 3 entities in HQL
deleting causes : not-null property references a null or transient value