Hello
Currently we are using hibernate (jpa) and hibernate-search. I'm about to change from annotations to programmatic API and to stay typesafe i had the glorious idea, to use jpa metamodel...
So instead
Quote:
mapping.entity(Address.class).indexed().property("addressId", ElementType.METHOD).field();
something like
Quote:
mapping.entity(Address.class).indexed().property(Address_.addressId.getName(), ElementType.METHOD).field();
But sadly without success... Because setup needs SearchMapping a lot before StaticMetaModel classes gets initialized, I'm running into NPE.
Any idea how I can use programmatic API and stay typesafe? Any suggestion are welcome...