There are fields named 'date' on both of general and metadata of a schema. And on entity class, 'date' field is mapped to a property by using SemanticProperty.
Then metadata date field's value is set to the property(date). How can I set general field's value to the property?
Is there any method to explicitly map general or metadata field to Java's property?
My entity class is following.
import static com.sdl.webapp.common.api.mapping.semantic.config.SemanticVocabulary.*;
import com.sdl.webapp.common.api.mapping.semantic.annotations.SemanticEntity;
import com.sdl.webapp.common.api.mapping.semantic.annotations.SemanticMappingIgnore;
import com.sdl.webapp.common.api.mapping.semantic.annotations.SemanticProperty;
@SemanticEntity(entityName = "NewsandEvents", vocabulary = SDL_CORE)
@Data
@EqualsAndHashCode(callSuper = true)
public class NewsandEvents extends AbstractEntityModel implements LineupEntity {
@SemanticProperty(propertyName = "date")
private DateTime date;