Added support for generating nestedset and temporal model