subclass inheritance strategy duplicate attributes

Description

when subclass inheritance strategy for an entity is chosen, its subclasses get duplicate attributes.
e.g. in the generated code:

// --------------- super attributes --------------------- private java.lang.String id;

/**
*
*

  • @hibernate.id

  • generator-class="uuid.hex"

  • column="ID"

  • type="java.lang.String"
    *

  • @hibernate.column

  • name="ID"

  • sql-type="VARCHAR(256)"
    */
    public java.lang.String getId()
    {
    return this.id;
    }

public void setId(java.lang.String id)
{
this.id = id;
}

// ------------- super relations ------------------
... and here it comes again:

// --------------- attributes --------------------- private java.lang.String id;

/**
*
*

  • @hibernate.id

  • generator-class="uuid.hex"

  • column="ID"

  • type="java.lang.String"
    *

  • @hibernate.column

  • name="ID"

  • sql-type="VARCHAR(256)"
    */
    public java.lang.String getId()
    {
    return this.id;
    }

public void setId(java.lang.String id)
{
this.id = id;
}

Environment

windows xp pro - java 5

Status

Assignee

MichaelM

Reporter

Candide Kemmler

Labels

None

Fix versions

Affects versions

3.0-M3

Priority

Major
Configure