I have the following annotation attached to the property
Code:
@Column ( name = "PRRECA" )
@Fields( {
@Field( name="reviewingagencycount", index=Index.UN_TOKENIZED, store=Store.YES,
bridge=@FieldBridge( impl = ProductReviewingAgencyCountBridge.class ) ),
@Field( name="reviewingagency", index=Index.UN_TOKENIZED, store=Store.NO,
bridge=@FieldBridge( impl = ProductReviewingAgencyBridge.class ) ),
} )
@Type ( type = "pb.persistence.ProductReviewingAgenciesType" )
private Set<ReviewingAgency> reviewingAgencies;
in an attempt to use a different bridge for each field in the index. Each bridge works when declared by itself with a property level @FieldBridge annotation or when using a bridge= inside a single @Field. When attempting to combine the two fields together in an @Fields, I get an exception when attempting to create the entity manager due to the above annotation?
Am I missing something obvious?