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.