Database design for hibernate
I'm a hibernate beginner and I have a very small seam application i'm building. Obviously hibernate is to be used but i'm a little confused as to what the database design should be. The application is basic:
1. Two types of materials exist, raw material and processed materials.
2. A processed material is to be constructed from two or more raw materials.
3. The price of the raw materials is to be entered by the user and saved in the database.
The basic design I have been able to come up with is placed as an image here. The problem with the design is that there is no way that I can load the quantity of the material as well without creating a seperate class from the base raw material class. The quantity can vary from 1 to 100 so can't hardcode it either. Any ideas? suggestions?
By Arjuna in forum Database
Last Post: 07-25-2007, 04:22 AM
By darkestsky in forum Database
Last Post: 10-15-2005, 03:07 PM
By Nick in forum VB Classic
Last Post: 12-14-2000, 03:59 PM
By Jacob Hatley in forum VB Classic
Last Post: 07-12-2000, 09:06 PM
By Leedo Leedo in forum VB Classic
Last Post: 03-20-2000, 12:49 AM
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL