These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Advice on Domain Driven Design
PostPosted: Sat Mar 07, 2009 2:41 am 
Newbie

Joined: Sat Mar 07, 2009 2:24 am
Posts: 9
Hi All

New to DDD here and have a architecture question which should be a typical problem.

I have a StockItem entity and a Store entity. I assign a StockItem to multiple Stores and set different ParLevels for each store. I then need to have transactions (sale, purchase, transfer-in etc) that adjust the quantity on hand at the various store.

What is the preferred way to model this solution? In my DB I would have the following simplied table structure:
[StockItem]
StockItemID pk
Name

[Store]
StoreID pk
Name

[Store_StockItem]
StoreStockItemID pk
StoreID fk
StockItemID fk
ParlLevel
QuantityOnHand

[StockItemTransaction]
StockItemTransactionID pk
StockItemStoreID fk
StockItemTransactionTypeID fk
Quantity

Any advice greatly appreciated


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.