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

java.lang.StackOverflowError with generic document type in mongo #236

Closed
noter opened this issue Sep 24, 2012 · 1 comment
Closed

java.lang.StackOverflowError with generic document type in mongo #236

noter opened this issue Sep 24, 2012 · 1 comment

Comments

@noter
Copy link

@noter noter commented Sep 24, 2012

I think this is the same bug #231 but I only test this on mongo.

public class AbstractCollectionAttribute<T extends Collection<?>> {

    T value;

}

@Document
public class ListAttribute<T> extends AbstractCollectionAttribute<List<T>> {

        String name;

}

@Document
public class Product {

    ListAttribute<Integer> integerAttributes;
    ListAttribute<String> stringAttributes;

}

This model have not much sens, but I have much more complex with use this schema. It plays nice with spring data mongo (e.g. Query.query(Criteria.where(
"stringAttributes.value").is("Test") query forks fine), but now have problem with Q* generation.

@timowest
Copy link
Member

@timowest timowest commented Sep 29, 2012

Released in 2.8.0

@timowest timowest closed this Sep 29, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants