For example, I have 3 classes: Person, Student, and User. Student and User extend Person. A Student object already exists, and I now want to create a User object that inherits from the same Person as the Student object. Is this possible? Here's a code example:
User user = new User();
user.setLoginName("matt");
user.setPersonOid("001"); // A pre-existing personbroker.beginTransaction(); broker.store(user); broker.commitTransaction();
The result of the above code is a NEW empty person object being created with a newly generated OID (via a sequence). How can I associate the new User with a pre-existing Person?
Thanks again.
Matt
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
