facebook

Can you scaffold on Views?

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

    Greg Soulsby
    Member

    My users need to view data from across multiple tables.

    Have created a view to pull that data together and was hoping I would scaffold a form from that. But it looks like only tables appear in the list?

    Is there are way I can scaffold e a form on a view?

    Thanks

    #321442 Reply

    cconway
    Member

    See this thread:
    https://www.genuitec.com/forums/topic/how-to-include-database-views-in-scaffold-spring-crud-app/&highlight=view+scaffold

    In that thread, Jack suggests creating a table to use during scaffolding. A different approach would be to create a JPA entity that mimics the view. You should be able to map the JPA entity to the view. Then scaffold from the JPA entity. I have to admit though that I’ve not tried it. Either way, the idea is to get a scaffolding source that is not the view directly.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Can you scaffold on Views?

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