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

org.hibernate.tool.schema.extract.internal.PrimaryKeyInformationImpl Maven / Gradle / Ivy

There is a newer version: 7.0.0.Alpha1
Show newest version
/*
 * Hibernate, Relational Persistence for Idiomatic Java
 *
 * License: GNU Lesser General Public License (LGPL), version 2.1 or later.
 * See the lgpl.txt file in the root directory or .
 */
package org.hibernate.tool.schema.extract.internal;

import org.hibernate.boot.model.naming.Identifier;
import org.hibernate.tool.schema.extract.spi.ColumnInformation;
import org.hibernate.tool.schema.extract.spi.PrimaryKeyInformation;

/**
 * @author Steve Ebersole
 */
public class PrimaryKeyInformationImpl implements PrimaryKeyInformation {
	private final Identifier identifier;
	private final Iterable columns;

	public PrimaryKeyInformationImpl(Identifier identifier, Iterable columns) {
		this.identifier = identifier;
		this.columns = columns;
	}

	@Override
	public Identifier getPrimaryKeyIdentifier() {
		return identifier;
	}

	@Override
	public Iterable getColumns() {
		return columns;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy