Need and example using panache Reactive JPA - quarkus

I found the quarkus-hibernate-reactive-panache extension but I couldn't find an example of it using Panache orm with reactive repositories (In my case I use postgresql).
PanacheRepositoryBase.java seems that works as I need (smallrye.mutiny.*), could anybody link me to an example?
Thanks in advace, and nice work on quarkus project.
Regards

UPDATE: A quickstart is now available on the Quarkus quickstarts development branch: https://github.com/quarkusio/quarkus-quickstarts/tree/development/hibernate-reactive-panache-quickstart
Old answer:
I've just created a new quickstart for Hibernate Reactive with Panache in Quarkus:
https://github.com/quarkusio/quarkus-quickstarts/pull/809
Hopefully, it will be included soon in the list of quickstarts, but you can have a look already if you want to play with it.

Related

the spring boot oauth2 doc teaches deprecated annotation?

it's a confusing problem but suffered me several days.
Firstly, I got to know that the new spring security oauth2 is changed, then I come to learn:https://docs.spring.io/spring-security-oauth2-boot/docs/2.5.2/reference/html5/.
However, when I try to add the annotation #EnableAuthorizationServer to the "main method", the Intellij throws it's deprecated".
Then, I tried to check the version: springframework.boot:2.5.2 , spring-security-oauth2:2.5.1.RELEASE, spring-security-oauth2-autoconfigure:2.5.2.
It means all the dependencies are new, and the doc is new too.
Then why the Intellij says the annotation is deprecated? I just wanna follow the new trend. Please tell me what to do?
thanks a lot.
As the documentation to which you have linked states, the project is in maintenance mode. Where possible, it should not be used and the equivalent features in Spring Security 5.x should be used instead.
The deprecation message on EnableAuthorizationServer links to a migration guide. From there you can learn about the Spring Authorization Server project which you may want to use.

Spring boot graphql-java and subscriptions

The following example https://github.com/graphql-java/graphql-java-subscription-example which use's graphql-java for subscriptions over a websocket.
How can the same idea be done within the spring version? GraphQLSubscriptionResolver needs to return a publisher but I am unable to work out how this can then be used with a web socket.
The example above seems fine within a none spring version.
A good friend of mine has made an example in his github repository.
The code is not the nicest (because it was for our own personal needs) but it is a nice example
Have fun
Here's a port of the graphql-java example using GraphQL-SPQR with Spring Boot. I'll soon merge it into the GraphQL-SPQR samples project.
Same as with the other answer, while it uses GraphQL-SPQR to generate the schema, the Spring and websockets bit is the same as you'd have with graphql-java directly.
There's now a new and somewhat more realistic example using GraphQL SPQR Spring Boot Starter. It publishes updates when a relevant mutation runs.
I just published a workshop in which you can learn how to implement the subscription operations.
http://graphql-java.wesovilabs.com
Let me know If you have any doubt
I hope you find it useful!
Thanks

Mongo based session persistence using SparkJava (jetty 9.4.x)

We are Implementing Mongo based session persistence using SparkJava (version 2.6.0 with Jetty 9.4.x). we required to store jetty session into mongoDB. How i can achieve it in SparkJava? I found many example of using MongoSessionIdManager and MongoSessionManager with jetty-nosql (9.3.x). but MongoSessionIdManager and MongoSessionManager no longer exist in jetty-nosql (9.4.x).
I think this topic was discussed at https://github.com/perwendel/spark/pull/836 but not able to find example of implementation..
Thanks a lot in advance !!
I Got it working after customizing SparkJava library and generated spark-core-2.6.1-SNAPSHOT.jar.
added working Example of MongoDB and JDBC based session clustering using SpakrJava at My GitHub repository

Batoo JPA, Spring and JodaTime

I've been checking out batoo JPA lately. I've managed to use it with Spring and it seems to work good with the standard JPA interface. Now I'm looking how to get JodaTime to get persisted transparently.
I know that I can write a converter but I was wondering if maybe guys from the batoo team done some work on this. I've cloned the source and grep-ed it through but with no luck.
Thank you for pointing out the issue.
As stated in the issue manager a snapshot has been released that should fix the issue.

example project for Spring and Hibernate

I am new to Spring and Hibernate. I have learned and tried the basic examples from sites like www.mkyong.com ,krams915.blogspot.com .
Now i want to try building some applications using Spring,hibernate. I am looking for some project examples which i can refer.
I searched google for this , but couldn't find one
Can anyone please suggest?
Thanks in Advance.
Try to search GitHub, BitBucket or SourceForge. There is also a "semi-official" sample app PetClinic developed by SpringSource.

Resources