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

Not entering data into the database

 
Sahana Hegde
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to run a java class to populate data into the database.
I have all the files. When I run the application it is even generating the sql. But I do not see the results in the database. Is there anyway I can check if there was a mismatch in the data , or why it did not enter it into the db.
Thanks
 
Jaikiran Pai
Marshal
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sahana,

You will have to show us the code where you are creating and saving the entity. You can also have a look at this this thread where a similar discussion took place.
 
Sahana Hegde
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I wrote the code again but this time with the xml mapping the same order as the database. It worked.
This was the mapping with different order


And this mapping with order same as the database

I narrowed down the problem to the mapping.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic