Skip to content

Instantly share code, notes, and snippets.

@nissshh
Created January 13, 2017 09:03
Show Gist options
  • Save nissshh/26d42b328a3552d61bed4f6b9ba7b058 to your computer and use it in GitHub Desktop.
Save nissshh/26d42b328a3552d61bed4f6b9ba7b058 to your computer and use it in GitHub Desktop.
A typical data model for sales
Hibernate Sample
Customer
Name
Address
PaymentId
Payment
PaymentId
PaymentType
Order
OrderNumber
OrderDate
OrderTotal
ShippmentId
OrderDetails
OrderId
ItemId
Quantity
UnitPrice
Discount
Price
Shipping
ShipmentId
Address
Inventory
Quantity
ItemId
UnitPrice
Items
UPC
ItemId
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment