| Author |
Persist problem
|
Mamadou Touré
Ranch Hand
Joined: Dec 27, 2007
Posts: 189
|
|
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
|
SCJP 5 (76%)
SCWCD 5 (86%)
SCBCD 5(70%)
--------------------
"The greatest glory in living lies not in never falling, but in raising every time we fall.".. Nelson Mandela
|
 |
leonardo segala
Greenhorn
Joined: Sep 02, 2009
Posts: 26
|
|
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
Joined: Dec 27, 2007
Posts: 189
|
|
|
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
Joined: Sep 02, 2009
Posts: 26
|
|
|
Very strange! But to help you, we need you to post more relevant informations.
|
 |
 |
|
|
subject: Persist problem
|
|
|