Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed Build a REST API in Spark!
You have completed Build a REST API in Spark!
Preview
We will build out our Data Access Object interfaces and install a JDBC wrapper known as Sql2o.
Dependencies
compile 'org.sql2o:sql2o:1.5.4'
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
explore a lightweight Java
database framework SQL2o.
0:00
Now SQL2o is not quite an object
relational mapper, or ORM, but what it
0:00
does allow you to do is run SQL statements
and have them populate your model objects.
0:06
In a standard Java database connectivity,
or JDBC application,
0:11
you the developer write a SQL statement
and get back a result set object
0:15
which you then use to create new
objects and populate them manually.
0:20
Now it's fairly time consuming and
0:23
you end up writing a lot of boiler
plate code over and over again.
0:25
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up