About Question enthuware.ocpjp.v7.2.1116 :

Help and support on OCA OCP Java Programmer Certification Questions
1Z0-808, 1Z0-809, 1Z0-815, 1Z0-816, 1Z0-817

Moderator: admin

Post Reply
The_Nick
Posts: 132
Joined: Thu May 16, 2013 9:23 am
Contact:

About Question enthuware.ocpjp.v7.2.1116 :

Post by The_Nick »

Once you get the Student object with getStudent, you are going to use method in the student class. Therefore the Data transfer object setters and getters. So is it possible to use in the business object both DAO and DTO? DAO in order to get a Student Object and a DTO to set and get data about the object? Furthermore the setters of a DTO... Do they actually change the database?

Thanks in advance.

The_Nick.

admin
Site Admin
Posts: 10066
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

Re: About Question enthuware.ocpjp.v7.2.1116 :

Post by admin »

Yes, business objects typically use both DAO (to do database updates) and DTO/VO (to send the objects to other layers.

No, DTOs do not update the database. They contain no logic.
If you like our products and services, please help us by posting your review here.

Post Reply

Who is online

Users browsing this forum: No registered users and 200 guests