aspose file tools*
The moose likes JDBC and the fly likes jdbc template vs hibernate Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "jdbc template vs hibernate" Watch "jdbc template vs hibernate" New topic
Author

jdbc template vs hibernate

David Thompon
Greenhorn

Joined: May 24, 2014
Posts: 1
What is the best way to securely pass SQL in a Java application? Today I heard that jdbc template was the best.
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30537
    
150

David,
Welcome to CodeRanch!

The key is to make sure the SQL is secure by itself. This is true regardless of what persistence technology you use. The most important rule is to make sure you always use bind variables (? in JDBC) for any data that could be supplied by the user.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: jdbc template vs hibernate