Class SchemaCreator

java.lang.Object
org.jasig.portlet.newsreader.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 NewsReader portlet database schema (and dropping it first, if necessary). It leverages the org.hibernate:hibernate-tools library, but integrates with NewsReader's Spring-managed ORM strategy and NewsReader's configuration features (esp. encrypted properties). It is invokable from the command line with '$ java', but designed to be integrated with build tools like Gradle.
Since:
5.1.1
Author:
bgonzalez
  • Constructor Details

    • SchemaCreator

      public SchemaCreator()
  • Method Details

    • main

      public static void main(String[] args)

      main.

      Parameters:
      args - an array of String objects
    • 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