de.jpdigital.maven.plugins.hibernate5ddl.Hibernate52GenerateDdlMojo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hibernate52-ddl-maven-plugin Show documentation
Show all versions of hibernate52-ddl-maven-plugin Show documentation
This plugin for Maven wraps the SchemaExport class from Hibernate 5 into a Mojo which
can easily configured from a projects pom.xml
/*
* Copyright (C) 2017 Jens Pelzetter
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
package de.jpdigital.maven.plugins.hibernate5ddl;
import org.apache.maven.plugins.annotations.LifecyclePhase;
import org.apache.maven.plugins.annotations.Mojo;
import org.apache.maven.plugins.annotations.ResolutionScope;
/**
* Provides a goal which creates DDL SQL files for the JPA entities in the
* project (using the Hibernate 5 SchemaExport class}.
*
* The actual logic is in {@link GenerateDdlMojo}, but without this class Maven
* does not find the goal.
*
* @author Jens Pelzetter
*/
@Mojo(name = "gen-ddl",
defaultPhase = LifecyclePhase.PROCESS_CLASSES,
requiresDependencyResolution = ResolutionScope.COMPILE_PLUS_RUNTIME,
threadSafe = true)
public class Hibernate52GenerateDdlMojo extends GenerateDdlMojo {
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy