Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where do you put your SQL Queries? [closed]

Tags:

java

sql

jdbc

We are using a mix of EJB 2.1 and JDBC to access our Database.

I just had a co-worker mention the idea to put his SQL Queries into a .properties file.

How and Where do you put your SQL Queries?

EDIT:

Do you inline it with the code, put into the class instantiation?

like image 880
Nuno Furtado Avatar asked Dec 10 '22 21:12

Nuno Furtado


1 Answers

In DAOs since I consider them part of my application and not a configurable (changeable by a sysadmin) element of the application.

like image 94
cherouvim Avatar answered Dec 12 '22 09:12

cherouvim