• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

How To Implement Many to Many Relationship in java using classes

 
Ranch Hand
Posts: 105
jQuery Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am Stuck With a Problem in my Project.

I am developing a Fictitious Payment gateway.

I have to implement a payment for Different types of merchant (N types).

Each merchant can have N no of Transactions, with a particular bank or with N no. of different banks..

So, i am not getting the basic idea how to do it using classes...

I have to develop a basic API,no use of Database and all...

Please help me out with that...

Your Suggestion and Explanation will be Helpful To me..

Thanks and Regard's
 
Bartender
Posts: 3323
86
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Welcome to the Ranch.

First of all decide on what classes you think you need and draw a UML class diagram showing the relationships between those classes.
 
Rohit Kumar Singh
Ranch Hand
Posts: 105
jQuery Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank's

I have a merchant type class , a merchant class, a bank class and some more classes for there calculations.

but what i am not getting is how to relate transactions between bank class and merchant class.

i.e i am not getting how to proceed with my Transaction's class.

Rest every thing in my code is fine..
 
reply
    Bookmark Topic Watch Topic
  • New Topic