package devopsdistilled.operp.server;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

import devopsdistilled.operp.server.context.AppContext;

public class ServerApp {

	public static void main(String[] args) {

		if (args.length > 0 && args[0].equalsIgnoreCase("create"))
			System.setProperty("hibernate.hbm2ddl.auto", "create");
		else
			System.setProperty("hibernate.hbm2ddl.auto", "update");

		ApplicationContext context = new AnnotationConfigApplicationContext(
				AppContext.class);

		System.out.println(context);
	}
}

package devopsdistilled.operp.server;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

import devopsdistilled.operp.server.context.AppContext;

public class ServerApp {

	public static void main(String[] args) {

		if (args.length > 0 && args[0].equalsIgnoreCase("init"))
			System.setProperty("hibernate.hbm2ddl.auto", "create");
		else
			System.setProperty("hibernate.hbm2ddl.auto", "update");

		ApplicationContext context = new AnnotationConfigApplicationContext(
				AppContext.class);

		System.out.println(context);
	}
}

Change argument to "init" for creating schema
Change argument to "init" for creating schema