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

org.hibernate.boot.model.source.spi.IdentifierSourceSimple 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.boot.model.source.spi;

/**
 * Additional contract describing the source of an identifier mapping whose {@link #getNature() nature} is
 * {@link org.hibernate.id.EntityIdentifierNature#SIMPLE simple}.
 *
 * @author Steve Ebersole
 */
public interface IdentifierSourceSimple extends IdentifierSource {
	/**
	 * Obtain the source descriptor for the identifier attribute.
	 *
	 * @return The identifier attribute source.
	 */
	public SingularAttributeSource getIdentifierAttributeSource();

	/**
	 *  Returns the "unsaved" entity identifier value.
	 *
	 *  @return the "unsaved" entity identifier value
	 */
	public String getUnsavedValue();

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy