After I migrated from xdoclet1.2.3 to xdoclet2 (for Hibernate 3.0.5), several of my test cases failed.

Realized the problem is with Object inheritance hierarchie. The mapping file is not generated correctly.

The hierarchie I have is:

Class A -> Class B -> Class C -> Class D

Four level deep. Object A is the concrete class. Class B, C and D  each contains some persistable fields.

In the mapping file of Class A, fields of Class A, Class C and Class D appears correctly. However, fileds of Class B are not there.

I tried to intentionally put some wrong attribute to the @hibernate.property tag in Class B, exception thrown. It is definitely being parsed.

The mapping in Class B is very simple and the same mapping is working for xdoclet1.2.3?

  /**
   * @hibernate.property
   *   type="java.lang.Boolean"
   *   update="true"
   *   insert="true"
   */
  public Boolean getDeleted() {
    return deleted;
  }

Hopefully, it is not a bug with xdoclet2.


Reply via email to