This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// vim: syntax=sql | |
CREATE OR REPLACE FUNCTION create_constraint_if_not_exists (t_name text, c_name text, constraint_sql text) | |
RETURNS void | |
AS | |
$BODY$ | |
BEGIN | |
-- Look for our constraint | |
IF NOT EXISTS (SELECT constraint_name | |
FROM information_schema.constraint_column_usage |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@ComponentScan | |
@Import(ServiceConfiguration.class) | |
@EnableHypermediaSupport(type = EnableHypermediaSupport.HypermediaType.HAL) | |
@EnableAutoConfiguration | |
public class Application extends SpringBootServletInitializer { | |
private static Class<Application> applicationClass = Application.class; | |
public static void main(String[] args) { | |
SpringApplication.run(applicationClass); | |
} |