Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  * Hibernate OGM, Domain model persistence for NoSQL datastores
  * 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.ogm.model.impl;
Provides meta-data about a one-to-one/many-to-one association represented by one or more columns contained within a org.hibernate.ogm.model.spi.Tuple.

Davide D'Alto
Gunnar Morling
	private final String[] associationKeyColumns;
	public DefaultAssociatedEntityKeyMetadata(String[] associationKeyColumnsEntityKeyMetadata entityKeyMetadata) {
		this. = associationKeyColumns;
		this. = entityKeyMetadata;

Returns the meta-data for the entity key on the other side of the represented association.

Returns the name of the column in the target entity key corresponding to the given association key column.

E.g. let there be an entity key comprising the columns id.countryCode and id.sequenceNo which is referenced by the columns address_id.countryCode and address_id.sequenceNo. When invoked for the column address_id.countryCode, this method will return id.countryCode.

associationKeyColumn The name of the column in the association
The name of the corresponding column in the referenced entity key
	public String getCorrespondingEntityKeyColumn(String associationKeyColumn) {
		int i = 0;
		for ( String column :  ) {
			if ( associationKeyColumn.equalscolumn ) ) {
		return null;

Returns the names of those columns of a tuple or association row which make up the represented association, i.e. the columns referring to the entity key on the other side.
	public String toString() {
		return "DefaultAssociatedEntityKeyMetadata [associationKeyColumns=" + Arrays.toString ) + ", entityKeyMetadata=" + 
New to GrepCode? Check out our FAQ X