Auto one-to-one issue

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Auto one-to-one issue

Volnei Munhoz
Hi all,

I have the follow scenario.

class User {
    String username
    Strign password
    Person person
   
    User userLog // for database log porpouses..
}


class Person {
   String fullname
   Date birthDate

   User userLog // for database log porpouses..
}


When I insert a person the userLog (a user in current database) is updated and his person is changed to the current person inserted.

Any way to disable this??

Thanks.
Volnei Granado Munhoz

Volnei Munhoz