Fully functional entity template generation