org.hibernate.tool.hbm2ddl.FileExporter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hibernate-ant Show documentation
Show all versions of hibernate-ant Show documentation
Annotation Processor to generate JPA 2 static metamodel classes
The newest version!
/*
* SPDX-License-Identifier: Apache-2.0
* Copyright Red Hat Inc. and Hibernate Authors
*/
package org.hibernate.tool.hbm2ddl;
import java.io.FileWriter;
import java.io.IOException;
/**
* @author Steve Ebersole
*
* @deprecated Everything in this package has been replaced with
* {@link org.hibernate.tool.schema.spi.SchemaManagementTool} and friends.
*/
@Deprecated
class FileExporter implements Exporter {
private final FileWriter writer;
public FileExporter(String outputFile) throws IOException {
this.writer = new FileWriter( outputFile );
}
@Override
public boolean acceptsImportScripts() {
return false;
}
@Override
public void export(String string) throws Exception {
writer.write( string + '\n');
}
@Override
public void release() throws Exception {
writer.flush();
writer.close();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy