title: How to handle HUGE SQL strings in the source code
body: <p>I am working on a project currently where there are SQL strings in the code that are around 3000 lines.</p>
  
  <p>The project is a java project, but this question could probably apply for any language.</p>
  
  <p>Anyway, this is the first time I have ever seen something this bad.
  The code base is legacy, so we can suddenly migrate to Hibernate or something like that.</p>
  
  <p>How do you handle very large SQL strings like that?</p>
  
  <p>I know its bad, but I don't know exactly what is the best thing to suggest for a solution.</p>