• 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: 17278
    6
    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: 17278
    6
    IntelliJ IDE Mac Spring
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Did you use the Session to commit?

    Mark
     
    • Post Reply
    • Bookmark Topic Watch Topic
    • New Topic