Hi
Do Jinq support @Embeddable classes for JPA?
I have tried to use them, but can't get it to work, here is the example in question (stripped of all none relevant code)
@Entity
public class Outer implements Serializable {
@Embedded
private Inner inner;
public Inner getInner(){
return inner;
}
}
@Embeddable
public class Inner implements Serializable {
private String sort;
public String getSort(){
return sort;
}
}
streamAll(em, Outer.class).sortedDescendingBy(o -> o.getInner().getSort());
The errors i get is:
java.lang.IllegalArgumentException: Could not analyze lambda code
...
Caused by: org.objectweb.asm.tree.analysis.AnalyzerException: Unknown method package/Inner:getSort()Ljava/lang/String; encountered
...
Doing the query in JPQL works perfectly (SELECT A FROM Outer A ORDER BY A.inner.sort DESC)
I really like the concept of Jinq moving from a C# world with Linq to Java, so i really hope you find the time, and get some support to continue developing Jinq.