Dynamic-component

Can someone share a a good example of using dynamic-components using hibernate -
I see the reference below but it is a very old post, are there any modern techniques of achieving the same:

thanks in advance.

This is usually done by using some kind of JSON type on the database side and a custom type or map if you like in the entity model: https://vladmihalcea.com/java-map-json-jpa-hibernate/