protected void addToRelationStack ( Map < Object , Object > relationStack , Object entity , EntityMetadata m ) { Object obj = entity ; if ( entity instanceof EnhanceEntity ) { obj = ( ( EnhanceEntity ) entity ) . getEntity ( ) ; } relationStack . put ( obj . getClass ( ) . getCanonicalName ( ) + "#" + PropertyAccessorHelper . getId ( obj , m ) , obj ) ; }
Adds the to relation stack .