wood burning stoves 2.0*
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes Entity Naming convention - Part 2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Bookmark "Entity Naming convention - Part 2" Watch "Entity Naming convention - Part 2" New topic
Author

Entity Naming convention - Part 2

Kumar Amit
Ranch Hand

Joined: Aug 13, 2001
Posts: 103
Hi Friends

As per one of the use case in the assignment, user post requests for parts for bidding by suppliers. Is it ok to call it as PartRequest or should it be called BidRequest. The provided domain model calls it "Request" which is a very generic.


SCJP, SCJD, SCEA
Rahul Mishra
Ranch Hand

Joined: Jan 22, 2006
Posts: 211
While naming entities or generic java classes..it is typically better to relate the names to reflect real world concepts (of course this isn't always true)

So, something like PartRequest would make sense..if it is a request for parts..
BidRequest..is misleading..because it seems like a request for a bid..but what you actually want to do is 'Bid'..

You are right...'request is way too generic'


OCMJEA/SCEA, SCDJWS, SCBCD 1.3, SCJP 1.4
My SCEA experience:http://javalogue.blogspot.com/
Nilessh Ganu
Ranch Hand

Joined: Dec 22, 2009
Posts: 100
Rahul Mishra wrote:While naming entities or generic java classes..it is typically better to relate the names to reflect real world concepts (of course this isn't always true)

So, something like PartRequest would make sense..if it is a request for parts..
BidRequest..is misleading..because it seems like a request for a bid..but what you actually want to do is 'Bid'..

You are right...'request is way too generic'



PartRequest will be used for only part requests. So should we go ahead and use 'Request' so that there could be enough room to accomodate items other than Parts in future?
I agree there are only part example mentioned in the BDM, should our design be generic enough so as to accomodate few requirements out of BDM?

Nilesh
SCJP SCWCD OCMJEA
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Entity Naming convention - Part 2