Skip to Content
Former Member
Jun 23, 2009 at 02:59 PM

OO Design question's


Hi all,

i have four tables:

1. user tables

2. Machine (computer /blackberry... ) that will store user locale for every machine

user can have 4 of 5 machine with different locale in every machine

3. attributes

4. additional data.

All this tables is are related to user and machine,

i.e. i can create user in the table without create machine but i can't create

Racine without creating user ,and so on for attributes that relate for user and machine.

i build class for each table that i have .

and now i facing some issue's

1. Since i want in all method to do CRUD opretion (for instance create_user method in class user create_machine in machine class delete_user delete_attributes etc..)

there is a way instead of using different CRUD in any of the class to use something generic ?

2.Since that i cant for instance create machine without creating user before, I need class

business class that handle this issue i.e method that call to create user and after create machine. ,this is o.k. ?

Thanks a lot !