A simple schema: person.odl
enum CivilState {
Lady = 0x10,
Sir = 0x20,
Miss = 0x40
};
class Address {
attribute char street[];
attribute char town[32];
};
class Car {
attribute char brand[];
attribute int num;
};
class Person {
attribute char name[];
attribute int age;
attribute Address addr;
attribute CivilState cstate;
relationship Person *spouse
(inverse<Person::spouse>);
attribute set<Car*> *cars;
attribute Person *children[];
};
class Employee extends Person {
attribute long salary;
};
Diapositive précédente
Diapositive suivante
Revenir à la première diapositive
Afficher la version graphique