• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

EJB: Unexpected behaviour.

 
Renato Perini
Greenhorn
Posts: 18
Eclipse IDE Java Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello guys.
This is my Entity:


This is the remote interface:


This is the Stateless Session Bean:


and finally this is the simple test client (using Eclipse, an "Application Client Project"):


Simple, uh?
It doesn't work. After the execution, I find 2 rows in the database, one with the original book and the second row with the updated book.
Also, the deleteBook() seems it has no effect at all.

What am I doing wrong? I'm using Glassfish 3.1.2 ...
Thank you in advance.
 
francesco umani
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think the problem is here:



why do you merge before the remove operation?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic