• Post Reply Bookmark Topic Watch Topic
  • New Topic

Spring program to save a record to a database using Hibernate

 
Jvin
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am a newbie to both Spring and Hibernate.
I wrote a spring program to save a record to a database using hibernate.
its not giving me any error but the record is not getting saved in the table.

Thanks in advance for any replies,
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Show us:
  • the code you use to save the record
  • the mapping for your object
  • the DDL for your table

  • Otherwise, since your description is light on details, all we can do is guess.
     
    Mark Spritzler
    ranger
    Sheriff
    Posts: 17309
    11
    IntelliJ IDE Mac Spring
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    "Jvin"-
    Welcome to the JavaRanch! Please adjust your displayed name to meet the

    JavaRanch Naming Policy.

    You can change it

    here.

    Thanks! and welcome to the JavaRanch!

    Mark
     
    Mark Spritzler
    ranger
    Sheriff
    Posts: 17309
    11
    IntelliJ IDE Mac Spring
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Did you use the Session to commit?

    Mark
     
    Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
    the new thread boost feature: great for the advertiser and smooth for the coderanch user
    https://coderanch.com/t/674455/Thread-Boost-feature
    • Post Reply Bookmark Topic Watch Topic
    • New Topic
    Boost this thread!