Il existe deux types de classe :
-
Les classes d'entité, qui disposent de leur propre identité de base de données, définition de correspondance et cycle de vie
-
Les classes de type valeur qui dépendent des classes d'entité. Elles sont également appelées classes de composant