user962206
user962206

Reputation: 16117

Putting Objects in the JDBC?

I am wondering how will I implement this classes I made in the JDBC, you see,I created a class like User,Employee, FinanceMember , SystemAdmin, and all of them have references to classes like PersonalInformation,ContactInformation, when I code all I can think of is they are going to be objects, but How will I enter their date in the JDBC? Will I pass these objects to any mysql Api? or there's something specific I should do??

Upvotes: 0

Views: 74

Answers (1)

Puce
Puce

Reputation: 38122

Have look at a JPA implementation (e.g. EclipseLink or Hibernate), which is a O/R-mapping framework.

JPA is based on JDBC.

Edit:

I need to finish this project within 3 weeks,

If you don't have time to learn JPA (though I recommend to learn it), but are familiar with JDBC, have a look at JdbcTemplate from the Spring framework. You can use it even if you don't use Spring. It helps with managing resources and mapping to objects.

Upvotes: 1

Related Questions