The Builder Pattern: How to use it with Hibernate

preview_player
Показать описание
In this tutorial video, I will talk about the builder pattern and how you can use it with hibernate

Implementing the builder pattern for your entities can massively improve the readability of your business code.
In contrast to the fluent interface pattern, there is nothing in the JPA specification or the Hibernate documentation that prevents you from implementing a builder for an entity class.
But implementing a good builder for your entities requires some additional thoughts. You need to do more than only provide builders that create a simple object. You need to cascade your builders to provide an API that makes it easy to build a graph of entities.

If you like this video, please give me your thumbs up and share it with your friends and co-workers.

Like my channel? Subscribe!

Join the free Member Library:

Want to connect with me?

#builderpattern #hibernate #JPA
Рекомендации по теме
Комментарии
Автор

Never seen such a valuable free content on youtube ever. Thank you . and keep posting such good stuff

SushilKumarBhaskar
Автор

I needed this so much! This is so clear and real world context. Keep it up! Thanks a lot

AdRiAn
Автор

This is really cool! Thank you so much.

tavoleyva
Автор

Good video like always. This is incredible how good quality and valuable content you're creating. Full respect man :)

mdrgn
Автор

Thank you Thorban again for such content.

UTUBDZ
Автор

Nice intro to builder pattern usage in hibernate.

Suggestion: the method in the builder should probably say 'addToSet' instead of 'addToList' in your example.

VivekMore
Автор

Hi thanks and can you provide us running project code.

amargupta