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
automap function on SelectBuilder object does not work #1
Comments
Thanks for the report, I'll have a look. |
I think the problem is that the automapped object returns Database.test() //
.select("select score from person where name=?") //
.parameterStream(Flowable.just("FRED")) //
.autoMap(Score.class) //
.doOnNext(System.out::println) //
.doOnNext(x -> System.out.println(x.score())) //
.blockingSubscribe();
interface Score {
@Column
int score();
} The output is:
The behaviour is definitely confusing so I'll make a change to generate a meaningful message from the automapped object's |
I've deployed 0.1-RC2 to Maven Central with the |
Thank you David. I believe that has fixed the issue, however i will test at work tomorrow morning. |
Glad you like it @adam-mahmood. By the way use 0.1-RC3 to pick up another fix. Cheers. |
Closing this because conversation is continuing in #3 |
db.select( "SELECT RecIndex,Site FROM dbo.MEAS_CARRIER where Time >= ? ORDER BY RecIndex ASC") .parameterStream(Flowable.just(Instant.now().minus(Duration.ofHours(1).plus(Duration.ofMinutes(2))))
.delay(1, TimeUnit.SECONDS).repeat())
.autoMap(CarrierMeasuremnt.class).distinct();
Your automap function returns a Flowable, and when you subscribe to the Flowable the value is null!
Can you please help?
The text was updated successfully, but these errors were encountered: