$reference

( documentation for Telosys generator version 4.0.0 )


Entity referenced by another entity
Provides references count for 'toMany' and 'toOne' links


Example :
   
   #foreach($reference in $entity.references )
    ${reference.entityName}
    ${reference.toOneCount}
   #end
   

Since : 3.4.0

Attributes and methods
.entity : EntityInContext

Referenced entity

.entityName : String

Name of the referenced entity

.toMany : boolean

true if has 'to many' reference(s) (one or more)

.toManyCount : int

Number of 'to many' references (0..N)

.toOne : boolean

true if has 'to one' reference(s) (one or more)

.toOneCount : int

Number of 'to one' references (0..N)

.totalCount : int

Total number of references (1..N)