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

queryable:sourcev4 gives error without generate code #46

Closed
fiorenzino opened this issue Sep 24, 2023 · 0 comments
Closed

queryable:sourcev4 gives error without generate code #46

fiorenzino opened this issue Sep 24, 2023 · 0 comments

Comments

@fiorenzino
Copy link
Contributor

in absence of @q on field, we should have:

@OverRide
public Predicate[] query(CriteriaBuilder criteriaBuilder, Root<${className}> root) throws Exception {
    var predicates = new ArrayList<Predicate>();
    return predicates.toArray(new Predicate[]{});
}

we have this error:

[ERROR] 
java.lang.NullPointerException: Cannot invoke "org.jboss.forge.roaster.model.source.MethodSource.setBody(String)" because "templateMethod" is null
   at it.ness.queryable.builder.QueryableV4Builder.createRsService (QueryableV4Builder.java:103)
aleksandar-mojanchevski added a commit to aleksandar-mojanchevski/queryable that referenced this issue Sep 25, 2023
fiorenzino added a commit that referenced this issue Sep 25, 2023
#46 queryable:sourcev4 gives error without generate code
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