I want to deploy my Java application in Heroku, I use eclipse link JPA.
To do this, I need to create tables through Java, as long as I have the code below, but how do I get DDL to create the table. I will run the MySQL application for development and Heroku Postgres for production. Therefore, I would like the create table statement to take this into account.
import javax.persistence.*; public class SchemaCreator { public static void main(String[] args) { EntityManagerFactory factory = Persistence.createEntityManagerFactory("bitcoin"); EntityManager em = factory.createEntityManager(); String ddl =
source share