Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Using views instead of SQL queries in SB?

 
Amit Shanker
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

In our application, we fire SQL queries from SB methods. Now whenever we change the query, we need to compile the SB and restart the application server.

To avoid the above scenario, we are planning to create oracle views and to fetch data just fire a "SELECT" on the view. If the query changes, we just have to modify the view, so there is no need to modify SB or restart the application server.

Are there any problems in using views or calling them through SB methods??

Your experience and answers will be highly appreciated.

We are using iPlanet Application server version 6.5 SP1 and database is Oracle 8i.

Thank you very much.

Amit.
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Its fine so long as your application is read only I think. There are however restrictions when it comes to updating data through views (search your oracle documentation for "updatable views").
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic