facebook

Beyond CRUD Example

  1. MyEclipse IDE
  2.  > 
  3. Spring Development
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #316351 Reply

    Mork
    Participant

    Could you all please post a tutorial that shows how to set up a form which is not a CRUD form?

    For example, how about setting up a CUSTOMER->CUSTOMER ORDERS (1:M) data entry form or something straightforward like that?

    I’m at the point where the scaffolding and reverse engineering of data tables for CRUD works well, but wish there were some additional tutorials.

    Look forward to your reply.

    Thanks,

    — M

    #316389 Reply

    jkennedy
    Member

    M,

    I want to be sure that I understand your question. We do generate forms for managing relationships where you can create parents and then create children etc. So we are generating basic Create / Read / Update / Delete on a per entity basis, and we are generating the relationship management front end and back end code.

    Are you asking for a tutorial on how to manage relationships between existing records rather than just letting you manage relationships between new records.

    Thanks for any clarification.

    Jack

    #316391 Reply

    Mork
    Participant

    @jkennedy wrote:

    M,

    I want to be sure that I understand your question. We do generate forms for managing relationships where you can create parents and then create children etc. So we are generating basic Create / Read / Update / Delete on a per entity basis, and we are generating the relationship management front end and back end code.

    Are you asking for a tutorial on how to manage relationships between existing records rather than just letting you manage relationships between new records.

    Thanks for any clarification.

    Jack

    Hi Jack,

    I was really just asking for another type of tutorial. One which covers another user goal: creating a basic (parent-child) data entry form with JSPs that would require some additional input. Perhaps creating a model object to do some business logic.

    Perhaps this sounds like a regular CRUD form, but I was thinking about something else too, like maybe a “login form”. In this case, you don’t need to persist data, but instead need to interact with the service layer.

    I’m not sure how to do this.

    Since MYE for Spring does so much for me already, it’s difficult to sometimes know how to jump in and do something that isn’t auto-generated. 🙂

    Can you all create a tutorial like this? I’m not thinking it would be that involved.

    Thanks,

    — M

    #316891 Reply

    neyde
    Member

    @Mork wrote:

    I was really just asking for another type of tutorial. One which covers another user goal: creating a basic (parent-child) data entry form with JSPs that would require some additional input. Perhaps creating a model object to do some business logic.

    Perhaps this sounds like a regular CRUD form, but I was thinking about something else too, like maybe a “login form”. In this case, you don’t need to persist data, but instead need to interact with the service layer.

    If you’re interested in login and security, then you may want to check out our Spring Security tutorial. It’s available in Eclipse Help, and online.

    As far other use cases where you don’t want to persist data and only want interact with the service layer, then I would recommend creating a java bean (POJO) that would represent your model object. Then you can scaffold from the java bean, but uncheck the data layer option from “Application Layers and Packages” panel of the scaffolding wizard. You will end up with the JSP, controllers and services that you need. You will have to implement the service methods.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Beyond CRUD Example

You must be logged in to post in the forum log in