This content has been marked as final.
Show 2 replies
-
1. Re: Unknown type metadata when using cache queries
sannegrinovero Jun 22, 2011 6:05 PM (in response to mstuder)Hi Martin,
I'm sorry, it seems I forgot to point this out on the wiki, fixing that.
@DocumentId should not be used with Infinispan Query, it's Hibernate Search specific: useful to deal with database loaded entities when the id doesn't match the database id. When using Infinispan Query you should annotate the objects with both @Indexed and @ProvidedId, and forget about the @DocumentId: the identifier is going to be the key used to store the value in the cache.
thanks for the feedback
-
2. Re: Unknown type metadata when using cache queries
mstuder Jun 23, 2011 2:29 PM (in response to sannegrinovero)Hi Sanne,
yep, that did it! Thank you very much for your fast response!
Best regards,
Martin