Class SchemaCreator

java.lang.Object
org.jasig.portlet.attachment.util.SchemaCreator
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware

public class SchemaCreator
extends Object
implements org.springframework.context.ApplicationContextAware
This tool is responsible for creating the SimpleCMS portlet database schema (and dropping it first, if necessary). It leverages the org.hibernate:hibernate-tools library, but integrates with SimpleCMS' Spring-managed ORM strategy and SimpleCMS' configuration features (esp. encrypted properties). It is invokable from the command line with '$ java', but designed to be integrated with build tools like Gradle.
  • Constructor Details

  • Method Details

    • main

      public static void main​(String[] args)
    • setApplicationContext

      public void setApplicationContext​(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
      Specified by:
      setApplicationContext in interface org.springframework.context.ApplicationContextAware
      Throws:
      org.springframework.beans.BeansException