that is a good idea!  i will try that.  i was thinking it might be necessary to specify the schema at the top of the @Entity in the @Table annotation.  i haven't tried that yet but i will try the logging first to see if it shows anything. On 16/03/2018 10:17, Romain Manni-Bucau wrote: > maybe activate sql logging to check what is happening exactly (LogSql=true > for instance) > > > Romain Manni-Bucau > @rmannibucau | Blog > | Old Blog > | Github | > LinkedIn | Book > > > 2018-03-16 9:46 GMT+01:00 Matthew Broadhead > : > >> they are both mysql databases >> >> On 16/03/2018 09:33, Romain Manni-Bucau wrote: >> >>> Hi, >>> >>> this is the way to do, maybe check your system properties and database >>> configurations. With some DB you can need some more config (thinking to >>> oracle and schemas for instance) >>> >>> >>> Romain Manni-Bucau >>> @rmannibucau | Blog >>> | Old Blog >>> | Github < >>> https://github.com/rmannibucau> | >>> LinkedIn | Book >>> >> high-performance> >>> >>> >>> 2018-03-16 9:23 GMT+01:00 Matthew Broadhead < >>> matthew.broadhead@nbmlaw.co.uk> >>> : >>> >>> hi, >>>> i just wrote an email to users@openjpa but there doesn't seem to be much >>>> activity there. >>>> do you know how to declare multiple persistence units? i created 2 >>>> persistence units inside persistence.xml but it seems to create the >>>> entities from the second PU in the database of the first one. my >>>> persistence.xml is like this. the operator tables get created inside the >>>> file database >>>> >>>> >>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >>>> xsi:schemaLocation="http://java.sun.com/xml/ns/persistence >>>> http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd" >>>> version="2.0"> >>>> >>>> file >>>> uk.me.kissy.file.entities.jpa.Box >>>> uk.me.kissy.file.entities.jpa.Category >>>> uk.me.kissy.file.entities.jpa.CqsReview >>>> uk.me.kissy.file.entities.jpa.Department >>>> uk.me.kissy.file.entities.jpa.Enclosure >>>> uk.me.kissy.file.entities.jpa.Event >>>> uk.me.kissy.file.entities.jpa.EventData >>>> uk.me.kissy.file.entities.jpa.EventType >>>> >>>> uk.me.kissy.file.entities.jpa.Log >>>> uk.me.kissy.file.entities.jpa.Note >>>> uk.me.kissy.file.entities.jpa.Payment >>>> uk.me.kissy.file.entities.jpa.Price >>>> uk.me.kissy.file.entities.jpa.Undertaking >>>> uk.me.kissy.file.entities.jpa.UndertakingType >>>> uk.me.kissy.file.entities.jpa.Workflow >>>> >>>> >>> value="buildSchema(ForeignKeys=true)" /> >>>> >>>> >>>> >>>> operator >>>> uk.me.kissy.file.entities.jpa.operator.Address >>>> uk.me.kissy.file.entities.jpa.operator.Client >>>> uk.me.kissy.file.entities.jpa.operator.Council >>>> uk.me.kissy.file.entities.jpa.operator.Operator >>>> uk.me.kissy.file.entities.jpa.operator.Posttown >>>> uk.me.kissy.file.entities.jpa.operator.Wtr_auth >>>> >>>> >>>> >>>>