aspose file tools
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes dummy question: what is domain object? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Reply Bookmark "dummy question: what is domain object?" Watch "dummy question: what is domain object?" New topic
Author

dummy question: what is domain object?

Lipman Li
Ranch Hand

Joined: May 02, 2002
Posts: 122
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?
Sanjay Raghavan
Ranch Hand

Joined: May 14, 2002
Posts: 148
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.


Sanjay Raghavan<br />SCJP2, SCEA-J2EE<br />Moderator - <a href="http://groups.yahoo.com/group/scea_prep" target="_blank" rel="nofollow">SCEA PREP</a><br />Co-Author - <a href="http://www.whizlabs.com/scea/scea.html" target="_blank" rel="nofollow">SCEA@Whiz</a><br /><i>Where did you sip your Java Today?</i>
Lipman Li
Ranch Hand

Joined: May 02, 2002
Posts: 122
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

Joined: May 02, 2002
Posts: 122
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.
SC Johnson
Greenhorn

Joined: May 15, 2002
Posts: 13
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.


SCEA, WWISA
Lipman Li
Ranch Hand

Joined: May 02, 2002
Posts: 122
Johnson,
yeah, agree with you. I'm trying not to think database & table, the situation is getting better.
regards
Alexander Yanuar Koentjara
Ranch Hand

Joined: Jun 03, 2002
Posts: 31
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...


===================================<br />Fear not, God know the best.<br />SCJP2 91%<br />SCWCD 89%<br />SCJD2 92% (143/155 pts)<br />SCEA Part I (89%)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: dummy question: what is domain object?
 
Similar Threads
What does domain objects in Java mean?
what is security domain
Domain object model
Domain object and Value Object in class diagram
Domain object??