Class<? extends Annotation> jpaIdClass =
ClassLoaderHelper.classForName( "javax.persistence.Id", configContext.getServiceManager() );
jpaId = member.getAnnotation( jpaIdClass );
}
catch (ClassLoadingException e) {
throw new SearchException( "Unable to load @Id.class even though it should be present ?!" );
}
if ( jpaId != null ) {
typeMetadataBuilder.jpaProperty( member );
if ( documentIdAnnotation == null ) {
log.debug( "Found JPA id and using it as document id" );