Several approaches have been taken to incorporate integrity constraints into the class definitions of an object-oriented (OO) database. In this work, we generate constraint checks automatically in the basic methods of a class definition. The constraints are derived from the Extended Entity-Relationship (EER) model, and incorporated into the object-oriented classes. Our work investigates the issues in designing an OO database by mapping an EER[1] schema into an Object model[2]. We define a number of basic methods for each class, and automatically generate default class definitions including both attributes and basic methods. In our approach, the constraints are incorporated into the code of the basic methods for each object class.