Win a copy of Head First Android this week in the Android forum!
  • 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 Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

Stuck with designing data model

 
Ranch Hand
Posts: 81
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,

I'm asked to build an application that allows ppl to enter information about a customer (other companies), and then generate several PDF's from that information (so that all the info only needs to be entered once). A lot of those documents need the same information (name, address,...) so this would speed up the process of creating the docs.
I know about creating/editing pdf's, JSP's, database logic, ... but I'm stuck with the essential part: what will my data model look like?

This is the problem: each customer has some general information (name, address,..) so that can go easily into a Customer Class. But what with all of the other information that is needed to fill out those documents.
Currently there are about 7 documents that need all kinds of information. Some is shared between documents, some isn't. Most of the information are Strings, but some are Booleans or Integers. It's pretty obvious that in the future more documents will be needed, or that existing documents will change.
I could keep all of the needed document fields in an external XML file that can be edited, and keep all of the data in a Map in the Customer class. But that's not very pretty...

Any suggestions?

Thanks!
 
reply
    Bookmark Topic Watch Topic
  • New Topic