HOM doesn't not work for binding List collections #599

Open
anthofo opened this Issue Mar 15, 2013 · 0 comments

1 participant

@anthofo

If the static type of a collection is declared as an ArrayList, HOM works fine :

@Column(name = "productList")
private ArrayList<Product> products = new ArrayList<Product>();

But if the static type is declared as a List, HOM throws an exception :

@Column(name = "productList")
private List<Product> products = new ArrayList<Product>();

result :

Exception in thread "main" java.lang.RuntimeException: unsupported property type, java.util.List.  Create custom converter or petition Hector Core team to add another converter to SerializerTypeInferer
at me.prettyprint.hom.HectorObjectMapper.determineSerializer(HectorObjectMapper.java:636)
at me.prettyprint.hom.converters.DefaultConverter.convertCassTypeToObjType(DefaultConverter.java:19)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment