title: Handling Database: Good software engineering concepts
body: <p>When I am creating JDBC application, what I normally do is, hard coding the "sql statements" to the java program. For an example</p>
  
  <pre><code>ResultSet rs = st.execute("select * from Users")
  </code></pre>
  
  <p>But, I have heard that this approach is not good software engineering concept. Some say all these sql statements should stay on database as "stored procedures" and JDBC should access them. From these two approaches, which can be categorized as a good software engineering concept? Please help!</p>