All Downloads are FREE. Search and download functionalities are using the official Maven repository.

de.jpdigital.maven.plugins.hibernate6ddl.Hibernate62GenerateDdlMojo Maven / Gradle / Ivy

Go to download

This plugin for Maven wraps the SchemaExport class from Hibernate 6 into a Mojo which can easily configured from a projects pom.xml

The newest version!
/*
 * Copyright (C) 2024 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.hibernate6ddl;

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 6 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 Hibernate62GenerateDdlMojo extends GenerateDdlMojo {

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy