Extending StandardEntity

Hello All,

I am trying to call the getter “createTs” from an entity extending StandardEntity

but I am getting this error"
Cannot get unfetched attribute [createTs] from detached object com.company.pbksb.entity.psb.Transfer_Ownership

I am not sure in the views how to extend StandardEntity

Hi,
This error means that the property createTs isn’t included into the view used to load the entity.

Usually the simplest way to avoid such error with local attributes is - to extend the view from “_base” or “_local”.

Thanks for your answer,

Your answer is as per the documentation which is quite right TBH,

I solved it by adding systemProperties="true" to the view.

hope this helps someone else :slight_smile: