Hi all,
Let me show you my codes first.
Product.class
@DynamicUpdate
@Getter
@Entity
@EqualsAndHashCode(callSuper = false)
@NoArgsConstructor(access = AccessLevel.PROTECTED)
@AllArgsConstructor(access = AccessLevel.PACKAGE)
@Indexed(index = "product")
public class Product extends AbstractAggregateRoot<Product> {
@Valid
@EmbeddedId
@IndexedEmbedded
private ProductKey productKey;
.......
ProductKey.class
@Getter
@Embeddable
@EqualsAndHashCode
@AllArgsConstructor
@NoArgsConstructor(access = AccessLevel.PROTECTED)
public class ProductKey implements Serializable {
@GenericField(name = "catalog_id")
private Long catalogId;
@NotEmpty(payload = ProductIdLengthException.class)
@Size(min = 1, max = 100, payload = ProductIdLengthException.class)
@FullTextField(name = "item_id")
private String itemId;
.........
when I ran this codes, I met the error
“HSEARCH700001: No default identifier bridge implementation for type ProductKey’. Use a custom bridge.”
How can I make correct bridge implementation?
Thank you.