Hello. There is a Java JPA application and a mysql database with which this application interacts. I created another mysql database to which I want to transfer some of the data from the first one. How to work with two databases in one application? Create two units of persistence?

  • it may be easier to use SQL, especially if there is a lot of data. are you using pure JPA? - Mikhail Vaysman
  • one
    Look here , it looks like your case. - Eugene Krotov

0