I have tried the following
1. Using AdminPresentationCollection
Code: Select all
@ElementCollection
@CollectionTable(name="MD_TEST_KEYWORDS", joinColumns=@JoinColumn(name="PRODUCT_ID"))
@Column(name="KEYWORD")
@IndexColumn(name="SEQUENCE_NUM", base=0)
@AdminPresentationCollection(friendlyName = "Keywords", order = Presentation.FieldOrder.NAME + 4)
private List<String> keywords = new ArrayList<String>();
Error i get:-
java.lang.IllegalArgumentException: Unable to infer a ManyToOne field name for the @AdminPresentationCollection annotated field(keywords). If not using the mappedBy property of @OneToMany or @ManyToMany, please make sure to explicitly define the manyToField property
2. Using AdminPresentation
Code: Select all
@ElementCollection
@CollectionTable(name="MD_TEST_KEYWORDS", joinColumns=@JoinColumn(name="PRODUCT_ID"))
@Column(name="KEYWORD")
@IndexColumn(name="SEQUENCE_NUM", base=0)
@AdminPresentation(friendlyName = "Keywords", order = Presentation.FieldOrder.NAME + 4, fieldType=SupportedFieldType.STRING_LIST)
private List<String> keywords = new ArrayList<String>();
Error i get:-
org.thymeleaf.exceptions.TemplateInputException: Error resolving template "fields/string_list", template might not exist or might not be accessible by any of the configured Template Resolvers (components/entityForm:77)
org.thymeleaf.TemplateRepository.getTemplate(TemplateRepository.java:246)
org.thymeleaf.standard.fragment.StandardFragment.extractFragment(StandardFragment.java:202)
none seem to work for me.. Can anybody help??