speedment / jpa-streamer

JPAstreamer is a lightweight library for expressing JPA queries as Java Streams
GNU Lesser General Public License v2.1
345 stars 35 forks source link

JPA Streamer Field Generator Processor syntax errors in generated sources #271

Closed imdad-sarwar closed 2 years ago

imdad-sarwar commented 2 years ago

As attached, I tried to compile my gradle project on MAC many times but failed because of syntax errors in your plugin generated sources. All source levels, 17, 16, 11, 8 were tried but compilation failed. Respective scrrenshots attached

User$ java field_gen_err_java8 field_gen_err_java17 filed_gen_err_java11
minborg commented 2 years ago

Hi and thanks for reporting this issue. Are you able to post the original entity class User so we could reproduce the problem?

imdad-sarwar commented 2 years ago

Hello, below is the User class code. And also clarify, if code gen works for for Embeddable JPA entities ?

paUser.java.txt

imdad-sarwar commented 2 years ago

Hi, how can I apply this fix to my code. Shall I remove lombok extensions in order to use JPA streamer library. Still I have same issue and no .class files generating on classpath

julgus commented 2 years ago

We will issue a new release in our near future pipeline. Pulling the source and building your own snapshot remains an option until then. The Lombok extension pairs well with JPA Streamer and should not cause any trouble.

laszlo-amptech commented 2 years ago

I misdiagnosed this issue. With the field-generator, I am getting the following error now after getting past the previous, when I try to build ...

Execution failed for task ':compileJava'.

java.lang.StringIndexOutOfBoundsException: begin 0, end -1, length 148

julgus commented 2 years ago

@laszlo-amptech Try the new release. If you are still running into problems, please open a new issue and describe your context in greater detail. Thanks.