• 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:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

dummy question: what is domain object?

 
Ranch Hand
Posts: 122
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
what is the definition for domain class?
does it mean domain object must be persistent?
could we call the intermediate working object as domain object?
 
Ranch Hand
Posts: 148
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
Don't know if what you want is the Domain Class Diagram...Let me use an example from Petstore...
Consider the following EJBs - Account, Order and Inventory.
The Account domain is actually represented by 2 classes - AccountEJB and a dependent object class called ContactInfo. Here the Account Domain can be said to be made up of the two classes.
Similarly Order and LineItems makes up Order domain and Inventory and Item makes up the Inventory Domain.
HTH.
 
Lipman Li
Ranch Hand
Posts: 122
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
So, all the domain object must be stored into database, if it is not, it could not be called as domain object.
 
Lipman Li
Ranch Hand
Posts: 122
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
excuse me, my english is poor.
let me make the question clear, by one example.
in an e-commerce web site, customer make payment by creditcard, and the web site will send the payment request (include credit card number, amount due) to credit card Authority to verify.
now the question is: is the payment request object a domain object?
we definitely are not going to store payment request into database.
 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
A domain object does not imply a persistent class. Domain objects are *analysis* objects. They exist solely to help the analyst undertand the relationship between concepts in the system.
Many domain objects end up as persistent classes, but don't assume you are creating an ER diagram.
Once again, the domain class diagram is a communication tool between the analyst, customer, and eventually the designer.
 
Lipman Li
Ranch Hand
Posts: 122
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Johnson,
yeah, agree with you. I'm trying not to think database & table, the situation is getting better.
regards
 
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Lipman Li:
Hi,
what is the definition for domain class?
does it mean domain object must be persistent?
could we call the intermediate working object as domain object?


http://www.martinfowler.com explain that very well...
 
The human mind is a dangerous plaything. This tiny ad is pretty safe:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic