1   package com.ribomation.metahibernate.functest.polymorphicAssociation;
2   
3   import com.ribomation.metahibernate.subclass;
4   import com.ribomation.metahibernate.property;
5   
6   @subclass
7   public class Car extends Vehicle {
8       public Car() {}
9   
10      public Car(String regNr) {
11          super(110);
12          this.regNr = regNr;
13      }
14  
15      @property
16      private String      regNr;
17      public String       getRegNr() {return regNr;}
18      public void         setRegNr(String regNr) {this.regNr = regNr;}
19      
20  }