@Entity
@Table(
indexes = {
@Index(name = "ik_facebookpage_image_fetchtime", columnList = "image.fetchtime"),
}
)
@JsonTypeInfo(use= JsonTypeInfo.Id.NAME, property="@type")
@JsonSubTypes(@JsonSubTypes.Type(name="FacebookPage", value=FacebookPage.class))
@JsonInclude(JsonInclude.Include.NON_NULL)
public class FacebookPage implements Serializable {
...
@Embedded
private ImageInfo image;