Development

19 views
Skip to first unread message

Manohar lal

unread,
Jul 1, 2024, 3:21:43 AM7/1/24
to Sculptor Generator
i am using service to generate its controller but getting null pointer exception,
is there anyone who can help me to solve this error or where i am doing mistake.
Entity Reservations {
    databaseTable="reservations"

    hint="idSequence=reservations_res_X"

    Long id databaseColumn="reservations_id"
    String status length="1" nullable databaseColumn="status" hint="visible=true,toString"
    BigDecimal amount nullable databaseColumn="amount" hint="visible=true,toString"
    String returnUrl length="256" nullable databaseColumn="return_url" hint="visible=true,toString"
    String productName length="128" nullable databaseColumn="product_name" hint="visible=true,toString"
   
    Repository ReservationsRepository {
        findById;
        save;
        delete;
        findAll;
        findByCondition;
        PagedResult<@Reservations> findAll(PagingParameter pagingParameter);
        PagedResult<@Reservations> findByCondition(PagingParameter pagingParameter);
    }
   
    }

    Service ReservationsService {
        findById => ReservationsRepository.findById;
        findAll => ReservationsRepository.findAll;
        save => ReservationsRepository.save;
        delete => ReservationsRepository.delete;
        PagedResult<@Reservations> search(@ReservationsDTO aua);
        PagedResult<@Reservations> findAll(PagingParameter pagingParameter);
    }

    DataTransferObject ReservationsDTO {
        hint="for=search,entity=Reservations,fin_filter=merId"
        String status hint="type=boolean"
        String amount hint=""
        String returnUrl hint=""
        String productName hint=""
    }

    DataTransferObject ReservationsMergeDTO {
        hint="for=merge,entity=Reservations"
        String status hint="type=boolean"
        String amount hint=""
        String returnUrl hint=""
        String productName hint=""
    }

Resource ReservationsResource {
    hint = "isDetail"
    // String updateForm;
    update => ReservationsService.save;
    String createForm;
    create => ReservationsService.save;
    delete => ReservationsService.delete;
   
    show => ReservationsService.findById;
    String searchForm hint = "orderBy=createdDate:desc";
    search hint = "orderBy=createdDate:desc" => ReservationsService.search;


error screenshots are attached to the this.

thanks regards,
Manohar Lal
Screenshot (26).png
Screenshot (25).png
Reply all
Reply to author
Forward
0 new messages