I prefer DB first approach. So, let us start listing down all the domain entities in our JCart application domain.
- Product
- Category
- Customer
- Order
- OrderItem
- Cart
- Address
- User
- Role
- Permission
Though we identified Cart as a domain entity, we are not creating the table for holding the Cart details. We are going to take the simple approach of storing the active cart details in HttpSession only. But in real applications it is strongly recommended to store them in some persistent storage like database.
No comments:
Post a Comment