• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Multiple value insertion using hibenrate

 
divya sharma
Ranch Hand
Posts: 87
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have one PhoneFax table on which we can insert phone no as well as fax no. Now, my problem is how to insert both phone and Fax no in one shot.I tried but it insert single row at a time. Please suggest me how to do it.

Here is my Code:
 
divya sharma
Ranch Hand
Posts: 87
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can any one please help me ??
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you explain what you want to happen and what your mapping looks like? What is your table structure. I am a bit confused, because I would think that a fax number and a phone number object would be two different objects resulting in two different rows.

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