}
private void annotateMappedSuperclass( final Outline outline, final MappedSuperclass ms )
{
final JCodeModel cm = outline.getCodeModel();
final ClassOutline c = this.getClassOutline( outline, ms.getClazz() );
c.implClass.annotate( cm.ref( javax.persistence.MappedSuperclass.class ) );
if ( ms.getAttributes() != null )
{
this.annotate( cm, c, ms.getAttributes() );
}
if ( ms.getEntityListeners() != null )
{
this.annotate( c, ms.getEntityListeners() );
}
if ( ms.getExcludeDefaultListeners() != null )
{
c.implClass.annotate( c.parent().getCodeModel().ref( javax.persistence.ExcludeDefaultListeners.class ) );
}
if ( ms.getExcludeSuperclassListeners() != null )
{
c.implClass.annotate( c.parent().getCodeModel().ref( javax.persistence.ExcludeSuperclassListeners.class ) );
}
if ( ms.getIdClass() != null )
{
this.annotate( c, ms.getIdClass() );
}