Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 834661
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T04:42:23+00:00 2026-05-15T04:42:23+00:00

I just started using MySQL and I just can see myself woking with strings!

  • 0

I just started using MySQL and I just can see myself woking with strings!
I mean the compiler can’t catch errors like this and it’s just a mess!
Is there a wrapper or some kind of class I can add that does something as simple as making a function that adds a table and asks for args?

I’m sure there is a tool like that but I can’t find it or know its name.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T04:42:24+00:00Added an answer on May 15, 2026 at 4:42 am

    You’re basically looking for an Object Relational Mapper. Hibernate is one of the pioniers in this area. JPA is a new and well-established Java EE standard in this area, formed by the guy behind Hibernate. Hibernate and EclipseLink offers JPA implementations.

    There exist IDE tools to autogenerate Java classes based on database models and vice versa, such as Hibernate Tools for “good old” Hibernate and Eclipse Dali for JPA.

    If you don’t want to use an ORM and/or don’t want to autogenerate model objects, then you just have to make sure that you design the right model objects for the database model. I.e. use a Long property for a BIGINT field, a BigDecimal property for a DECIMAL field, etcetera. You can find an overview of the default mappings in this page.

    In “plain vanilla” JDBC you should at least use PreparedStatement methods to compose the SQL query rather than concatenating as String. There are a lot of setXXX() methods for the specific datatype, such as setLong(), setBigDecimal(), etcetera. The PreparedStatement not only eases setting fullworthy Java objects like Date and InputStream in a SQL query, but it also prevents the code from SQL injection attacks. You can learn more about PreparedStatement in the Sun JDBC tutorial and you can find a basic kickoff DAO tutorial in this article.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've just started using MySQL with PHP and I'd like to know if it's
I have made something just like this using php and mysql. Just curious to
I just started to work on informix.( I have been using mysql all my
I just started using the new Eclipse 4.2 (Juno) Null Analysis. On code like
I am a newbie just started exploring Grails so that I can recommend this
I am just getting started using Dapper to access a MySql database and I
I just started using the MySQL Geospatial extension in hope of speeding up lat/lng
I just started using mysqli API for PHP. Apparently, every time an object of
I just started using Twitter Bootstrap http://twitter.github.com/bootstrap/scaffolding.html and I'm looking for the grey/blue navbar
I just started using Eclipse but already I have a small problem. At first

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.