Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Java Spring with Hibernate Data-Driven Application Design Writing Your First DAO

Timothy Boland
Timothy Boland
18,237 Points

In regards to the Spring projects, What is the difference between DTO and DAO?

In this project are DTO and POJO the same thing?

The reason Im asking is....Im looking at other Spring examples online and they are using DTO but not DAO.

Any help would be appreciated :-)

1 Answer

Timothy Boland
Timothy Boland
18,237 Points

Nevermind....I see that it is covered in unit-testing-a-spring-application. Thank You

Alexander Nikiforov
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Alexander Nikiforov
Java Web Development Techdegree Graduate 22,175 Points

I wanted to add about the nice use of DTO is in User Registration

Check this.

I've implemented this in my project 12.

And right there I saw that with User Registration it makes perfect sense to use DTO in Spring