THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
- Add additional fields to the InventoryItem Entity.
- Create a Customer Entity and establish a one-to-many relationship with the InventoryItems as one customer having purchased many items.
- Since several customers could have purchased the same items and an item could have been purchased by many customers, use the documentation to create a many-to-many relationship using @ManyToMany*.
~ *To make these changes you may have to delete the existing database tables so that they can recreated with the new relationship fields.~
References
- Java J2SE 1.6
- Apache Sources
...