java - Using JPA @ManyToOne with different databases -
i'm trying deport part of tables single db 2+ db. application run play! ( 2.4.4 ) , use jpa persistence. right have :
@entity @persistenceunit(name="dbfora") public class { @id public long id; ..... @manytoone @joincolumn(name="user_uuid") public user user; } my application.conf file correct since tables no @manytoone, @onetoone or other annotations correctly persisted on other db ( other being not main 1 ).
when run application play! yells @ me :
a jpa error occurred (unable build entitymanagerfactory): @onetoone or @manytoone on models.document.a references unknown entity: models.blalbla.blalbla.a
i've been doing research can't seem find informations topic.
any appreciated.
have nice day/night/morning/afternoon/weekend/birthday.
Comments
Post a Comment