Closed yllekkram closed 11 years ago
I will try to get auto-generation of IDs working. I know it isn't difficult because I did it in my had_to_be_done branch
.
ref: line 26 of User.java
edit: fixed line number
@GeneratedValue
annotation to the ID field of Orders. This may involve mucking with OrdersPK.Sounds good
In regards to point #2, mucking with ordersPK was more mucky than I thought.
Currently, when an order is created, an ID needs to be manually generated for it. This should be done automatically either by the database or hibernate. It SHOULD NOT be the presentation layer's responsibility.
For example, in
OrdersServiceImpl
, bothaddPurchase
andaddRental
expect an orderID to be passed in.