• 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 all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

Stuck with designing data model  RSS feed

Ranch Hand
Posts: 81
  • Mark post as helpful
  • send pies
  • 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?

Been there. Done that. Went back for more. But this time, I took this tiny ad with me:
how do I do my own kindle-like thing - without amazon
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!