java - Spring Boot - JPA - Postgres ERROR: cross-database references are not implemented: -


i using spring boot, jpa , postgres , have 1 database multiple schemas. implement web service using jpa , receive error:

o.h.engine.jdbc.spi.sqlexceptionhelper : error: cross-database references not implemented: "kaloudia_db_v2.enumeration.unit"

do know way overcome error?

my class

@entity @table(name = "unit", schema = "enumeration", catalog = kaloudia_db_v2") @xmlrootelement @namedqueries({     @namedquery(name = "unit.findall", query = "select u unit u"),     @namedquery(name = "unit.findbyid", query = "select u unit u u.id = :id"),     @namedquery(name = "unit.findbynameen", query = "select u unit u u.nameen = :nameen"),     @namedquery(name = "unit.findbynameel", query = "select u unit u u.nameel = :nameel")}) public class unit implements serializable { private static final long serialversionuid = 1l; @id 

and call of jpa function is:

public object getallunits() {     list<unit> units = unitrepository.findall();     return units; } 

as jackk said, saw application properties file , fount out forgot change spring.datasource.url property!!

i sorry question! works fine now!


Comments

Popular posts from this blog

how to insert data php javascript mysql with multiple array session 2 -

multithreading - Exception in Application constructor -

windows - CertCreateCertificateContext returns CRYPT_E_ASN1_BADTAG / 8009310b -