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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidmain.voidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext)
-
Constructor Details
-
SchemaCreator
public SchemaCreator()
-
-
Method Details
-
main
main.
- Parameters:
args- an array ofStringobjects
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException - Specified by:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware- Throws:
org.springframework.beans.BeansException
-