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

com.myjavadoc.hibernate4.exporter.HibernateComponent Maven / Gradle / Ivy

Go to download

Hibernate 4 maven plugin, run hibernate tools from inside maven builds. Based off Codehaus hibernate3-maven-plugin 2.2. The configuration is the same but the performance is alot better. See source for example database reverse engineering to JPA.

The newest version!
package com.myjavadoc.hibernate4.exporter;

/*
* Copyright 2005 Johann Reyes.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
*      http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

import java.io.Serializable;

/**
 * Bean in charge to hold the default values needed to run a goal.
 *
 * @author Johann Reyes
 * @author Tim O'Brien
 * @version $Id: Component.java 8640 2009-01-11 19:17:38Z david $
 */
public final class HibernateComponent
    implements Serializable
{
    /**
     * 
     */
    private static final long serialVersionUID = 1L;

    /**
     * Configuration alias for this goal implementation.
     */
    private String implementation;

    /**
     * Goal's name.
     */
    private String name;

    /**
     * Output directory for this goal implementation.
     */
    private String outputDirectory;
    
    /**
     * Is the output directory a compile source root
     */
    private boolean compileSourceRoot = false;
    
    /**
     * Returns the alias of the Configuration class that this goal uses.
     *
     * @return String
     */
    public String getImplementation()
    {
        return implementation;
    }

    /**
     * Sets the alias of the Configuration class that this goal uses.
     *
     * @param implementation String
     */
    public void setImplementation( String implementation )
    {
        this.implementation = implementation;
    }

    /**
     * Returns this goal's name.
     *
     * @return String
     */
    public String getName()
    {
        return name;
    }

    /**
     * Sets this goal's name.
     *
     * @param name String
     */
    public void setName( String name )
    {
        this.name = name;
    }

    /**
     * Returns the output directory for this goal.
     *
     * @return String
     */
    public String getOutputDirectory()
    {
        return outputDirectory;
    }

    /**
     * Sets the output directory for this goal.
     *
     * @param outputDirectory String
     */
    public void setOutputDirectory( String outputDirectory )
    {
        this.outputDirectory = outputDirectory;
    }

    /**
     * Returns whether the output directory is a compile source
     * root.
     * 
     * @return boolean
     */
	public boolean isCompileSourceRoot() {
		return compileSourceRoot;
	}

    /**
     * Sets whether the output directory is a compile source
     * root.
     *
     * @param isCompileSourceRoot boolean
     */
	public void setCompileSourceRoot(boolean isCompileSourceRoot) {
		this.compileSourceRoot = isCompileSourceRoot;
	}
    
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy