Hibernate search and dynamic models

Is it possible to use the “dynamic models” concept of Hibernate in conjunction with Hibernate Search? Since there is no PoJo class for setting the Hibernate Search annotations, the question would be how to communicate these definitions to the “Dynamic Model”.

Hey Markus, is programmatic mapping what you are looking for?

Hi Marko,
thanks for the hint. That would actually be exactly what I was looking for. Unfortunately, I’ve found in the meantime that Hibernate’s Dynamic Model isn’t as dynamic as I would have needed.
Nevertheless, the possibility of “programmatic mapping” is very interesting. I didn’t know that before, although I’ve been using Hibernate Search for a few years.

Thanks!

1 Like