Hi,

I want to create an Admin and a user class in java but I want them to have different rights to the DB.

For example for an admin:

He can delete an user's account or he can change a user's password and that stuff..

with the user having basic access like creating a user account, making a booking, updating the booking and so forth.

Now I can I will have to create two separate classes indentifying each class' fields, but how do I create the access rights and a user group in java through netbeans?

Thanks.