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

JPA problem

 
Zaeed McColin
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi guys I want add a record to table test2, but it don't work
why?
I use JPA for accessing DB
I have two table
test & test2, that they have relation

for test Table:


and test2 table


now in a servlet I want add a new record to test2 table(I don't have any problem in test table)


bty: Servlet done without any exception, but the new record not exists in database
I mixed up, what's the problem?
Server: (GlassFish V3)
 
Zaeed McColin
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sorry guys, I found the problem

in test2Table.java
I had to use

instead of


I'm really sorry guys
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic