0

Trying to create @relatedToVia as mentioned below.

@NodeEntity
abstract public class Table{
@GraphId
Long id1;
@RelatedToVia(type="hasRowFields")
protected RowField[] rowFields;

Can we relate on an array data type?
If not, what is the other way of relating in this scenario?

Error

org.springframework.data.mapping.model.MappingException
Charlotte Skardon
  • 6,220
  • 2
  • 31
  • 42
madireddy
  • 107
  • 3
  • 13

1 Answers1

0

I think arrays are not supported, try List<RowField> but RowField has to be a NodeEntity too.

double-beep
  • 5,031
  • 17
  • 33
  • 41
Michael Hunger
  • 41,339
  • 3
  • 57
  • 80