File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Hibernate multi row insert

 
anuja Edathu
Ranch Hand
Posts: 84
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
How can we insert multi row in to a table using single database access using hibernate?can any one help?
Thanks & Regards ,
Anuja K.
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes. You can save multiple object within one Session. Multiple inserts/updates will happen anyway if you update an object with multiple associates.
 
anuja Edathu
Ranch Hand
Posts: 84
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you,
Can you tell me how can i call a stored procedure in hibernate?
Regards
Anuja K.
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, its Hibernate3 only: use the <sql-query /> element to map your stored procedure (as you would for any named query). See here.
 
anuja Edathu
Ranch Hand
Posts: 84
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Thanks for your link i think it will do for me
Regards,
Anuja K
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic