Author | Message |
---|---|
jgreen
Posts: 23
|
Posted 15:57 Nov 05, 2009 |
I was having classcasting problems when I tried to retrieve an onlineassignment from the database by id. after looking at my database, I see that all of the newly created online assignments have the same id! So when it went to retrieve an assignment by id, it got a whole list of them. Since the id field is part of the superclass Assignment, shouldn't it automatically generate a new one for each new assignment? Should I have made another id for the subclass onlineAssignment? |
jgreen
Posts: 23
|
Posted 16:38 Nov 05, 2009 |
nevermind. dumb mistake, sorry to waste your time |