public Project project ( String name , Project parentProject , DateTime beginDate , Schedule schedule , Map < String , Object > attributes ) { Project project = new Project ( instance ) ; project . setName ( name ) ; project . setParentProject ( parentProject ) ; project . setBeginDate ( beginDate ) ; project . setSchedule ( schedule ) ; addAttributes ( project , attributes ) ; project . save ( ) ; return project ; }
Create a new project entity with a name parent project begin date and optional schedule with specified attributes .