我试图连接到两个不同的数据库(都具有反应性连接),但是我无法为第二个数据库创建一个连接池并继续使用Panache。我尝试使用注释,就像Quarkus文档中的那样,但是我不能为某些实体设置这个连接,以便通过Panache对这个特定的池执行操作。additional1".reactive.url=postgresql://localhost:5432/additional1public class Use
我从Quarkus教程:开始学习如何在Quarkus中使用findByIdOptional,但是当我尝试从PanacheMongoRepository使用Mongo时,尽管我的实体直接存储在数据库中,但控制台显示以下错误java.lang.IllegalStateException: This method is normally automatically overridden in subclasses
at io.quarkus.mongodb.p
我正在尝试使用Panache+Hibernate从我的数据库中获取一列的独特结果。通常,在Hibernate中,您会从查询中得到一个ArrayList<String>。a.country) from TMdBrandAll a order by a.country")
.page(Page.ofSize(1000)).list(); 但是如果我用Panachea.country) from TMdBrandAll a order by a.c
(ForwardingEntityManager.java:142) at io.quarkus.hibernate.orm.panache.runtime.JpaOperations.findAll(我在build.gradle中的依赖关系: annotationProcessor 'org.projectlombok:lombok:1.18.10''io.quarkus:quarkus-jdbc-postgresql