Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Persist problem

 
Mamadou Touré
Ranch Hand
Posts: 189
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I wrote en EJB that is called by a servlet, but when it comes to persiting the data, the operation is executed without error, but table is still empty (I don't see the record that has been persisted). I use TopLink as persistence tool. So could someone tell me what's wrong


here is my code
 
leonardo segala
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What persistence framework you user behind the jpa? If you use Hibernate, change the show_sql to true for show the SQL and look if the Insert is be generated. Check the transaction too, because if not persists data in database then a container isn't create a transaction for operation.

Regards.
 
Mamadou Touré
Ranch Hand
Posts: 189
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I use TopLink. Now I don't even see the records that I have in others tables. It seems that my SELECT * FROM ..... doesn't work anymore, it returns nothing.
 
leonardo segala
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Very strange! But to help you, we need you to post more relevant informations.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic