December 2017
Beginner to intermediate
148 pages
2h 12m
English
© Dave Wolf, A.J. Henley 2017
Dave Wolf and A.J. Henley, Java EE Web Application Primer, https://doi.org/10.1007/978-1-4842-3195-1_8
Dave Wolf1 and A. J. Henley2
(1)New York, USA
(2)Washington, D.C., District of Columbia, USA
Your application will interact with the DAO through the service layer.
Every time your application connects to the database , it will execute the same code. You can make your application more efficient by creating a class of reusable methods that you can call as needed. Create a class called DbUtilities. This will allow you to simplify calling the Entity Manager when you need to read or write to the database. This class will be static (no instantiation required). It will have one ...
Read now
Unlock full access