如何使用Spring Boot管理多个架构。
我可以使用
设置默认架构spring.jpa.properties.hibernate.default_schema=myschema
并将其用作{h-schema}tableName
中的@Query
但是,如何管理多个架构。因为,
@Query不允许使用schema.table。
JPA查询示例
@Query(value="select payment_date, payment_id, reminder_count, updated_atFROM {h-schema}invoice)
List<InvoiceEntity> findById();