SchemaGenerator

public class SchemaGenerator implements InitializingBean

The schema generator class is responsible for generating the table schema for entities and for running entities migrations upon start. Schema for all entity classes has to be generated, otherwise issues might arise in foreign key generation for example. This code runs in the generated entities bundle.

Fields

CONNECTION_DRIVER_KEY

public static final String CONNECTION_DRIVER_KEY

CONNECTION_URL_KEY

public static final String CONNECTION_URL_KEY

CONNECTION_USER_NAME_KEY

public static final String CONNECTION_USER_NAME_KEY

CONNECTION_USER_PASSWORD_KEY

public static final String CONNECTION_USER_PASSWORD_KEY

Constructors

SchemaGenerator

public SchemaGenerator(JDOPersistenceManagerFactory persistenceManagerFactory)

Methods

afterPropertiesSet

public void afterPropertiesSet()

generateSchema

public void generateSchema()

runMigrations

public void runMigrations()