MyEclipse Forums
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
tilo2k2
Post subject: How to include Database Views in Scaffold Spring CRUD App?  PostPosted: Sep 18, 2011 - 02:45 AM
Registered Member
Registered Member


Joined: Jul 10, 2005
Posts: 3

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?
 
 View user's profile Send private message  
Reply with quote Back to top
jkennedy
Post subject:   PostPosted: Sep 26, 2011 - 12:47 PM



Joined: Jan 27, 2010
Posts: 245

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

Thanks,
Jack
 
 View user's profile Send private message  
Reply with quote Back to top
jkennedy
Post subject:   PostPosted: Sep 26, 2011 - 12:50 PM



Joined: Jan 27, 2010
Posts: 245

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
 
 View user's profile Send private message  
Reply with quote Back to top
Smitht19
Post subject: Weak Answer to not supporting scaffolding of views  PostPosted: Jan 09, 2012 - 08:01 PM



Joined: Apr 20, 2011
Posts: 19

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.
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits