6 Replies - 354 Views - Last Post: 03 March 2013 - 06:16 AM Rate Topic: -----

#1 Garg  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 17
  • Joined: 25-August 12

(OneToMany relation)how to save the date through Mapping in java

Posted 02 March 2013 - 05:15 AM

hey,, i am mapped(onetomany relation) the java file ,,
i have done map a file and also generate the table in sql,, but i cant save a value in mapped file,,,,,, i doing map a file class and section.. if user select the class then display the section according to class ..

how to save the class and section in mapped file ..

please tell me a one example how to save a mapped file record and display a console..

ya tell me a method and action

how to save a value of a record or display the value in mapped sql table

Is This A Good Question/Topic? 0
  • +

Replies To: (OneToMany relation)how to save the date through Mapping in java

#2 darek9576  Icon User is offline

  • D.I.C Lover

Reputation: 198
  • View blog
  • Posts: 1,692
  • Joined: 13-March 10

Re: (OneToMany relation)how to save the date through Mapping in java

Posted 02 March 2013 - 07:15 AM

Are you using JDBC or some persistence framework.
Was This Post Helpful? 0
  • +
  • -

#3 Garg  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 17
  • Joined: 25-August 12

Re: (OneToMany relation)how to save the date through Mapping in java

Posted 02 March 2013 - 07:49 AM

persistant Frame Work
Was This Post Helpful? 0
  • +
  • -

#4 g00se  Icon User is online

  • D.I.C Lover
  • member icon

Reputation: 2776
  • View blog
  • Posts: 11,742
  • Joined: 20-September 08

Re: (OneToMany relation)how to save the date through Mapping in java

Posted 02 March 2013 - 08:08 AM

Quote

persistant Frame Work
darek probably means a ready made framework. If you do have one, you'll presumably know which one, so i'm assuming you're not using one.

To model a 1..n relationship you can use a Map whose values are a List. Or google on 'commons multimap'
Was This Post Helpful? 0
  • +
  • -

#5 Garg  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 17
  • Joined: 25-August 12

Re: (OneToMany relation)how to save the date through Mapping in java

Posted 02 March 2013 - 06:20 PM

i m using list
Was This Post Helpful? 0
  • +
  • -

#6 Garg  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 17
  • Joined: 25-August 12

Re: (OneToMany relation)how to save the date through Mapping in java

Posted 02 March 2013 - 06:25 PM

this is a display a value..
i want
"save the record radio box and check box: in table" and display the value in console
Was This Post Helpful? 0
  • +
  • -

#7 g00se  Icon User is online

  • D.I.C Lover
  • member icon

Reputation: 2776
  • View blog
  • Posts: 11,742
  • Joined: 20-September 08

Re: (OneToMany relation)how to save the date through Mapping in java

Posted 03 March 2013 - 06:16 AM

Sorry - don't understand your comments. You're going to have to be clearer
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1