facebook

How to include Database Views in Scaffold Spring CRUD App?

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

    tilo2k2
    Member

    Using Scaffold Spring CRUD Application, I can only allow to select database tables. Is there any ways that I can select database views?

    If there is no way that I can select database views during Scaffold Spring CRUD Application, please advice how can I have MyEclipse for Spring to generate code for database views with an existing generated code by using Scaffold Spring CRUD Application?

    #319931 Reply

    jkennedy
    Member

    I’m sorry we do not support scaffolding from views at this time.

    Thanks,
    Jack

    #319932 Reply

    jkennedy
    Member

    Sorry, for a bit more detail, the issue has generally been that you can’t use JPA to both search and update to views consistently across different DB vendors.

    If you only need to show data and not edit it you could likely scaffold from a table that matches your view and then drop the table and make sure the entity Table is mapped to your view name. This would give you read, but likely not write access to the view.

    Thanks,
    Jack

    #322213 Reply

    Smitht19
    Member

    JBOSS tools will support scaffolding of views. I use jboss tools to create the Domain and DAO for views and copy the generate code back in to my Myeclipse for spring project. It is a pain the Myeclipse people just need to add this simple thing for us developers.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: How to include Database Views in Scaffold Spring CRUD App?

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