Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
anthony-foulfoin opened this issue Mar 15, 2013 · 0 comments
Open

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

anthony-foulfoin opened this issue Mar 15, 2013 · 0 comments

Comments

@anthony-foulfoin
Copy link

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant