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

com.abubusoft.kripton.processor.exceptions.ForeignKeyNotFoundException Maven / Gradle / Ivy

There is a newer version: 8.2.0-rc.4
Show newest version
/**
 * 
 */
package com.abubusoft.kripton.processor.exceptions;

import com.abubusoft.kripton.processor.sqlite.model.SQLiteEntity;
import com.squareup.javapoet.ClassName;

// TODO: Auto-generated Javadoc
/**
 * The Class ForeignKeyNotFoundException.
 *
 * @author Francesco Benincasa ([email protected])
 */
public class ForeignKeyNotFoundException extends KriptonProcessorException {

	/**
	 * Instantiates a new foreign key not found exception.
	 *
	 * @param currentEntity the current entity
	 * @param entity the entity
	 */
	public ForeignKeyNotFoundException(SQLiteEntity currentEntity, ClassName entity) {		
		super(String.format("Entity '%s' is used to rapresents a many-to-many relationship and it need a foreign key to '%s'", currentEntity.getName(), entity.toString()));
	}

	/** The Constant serialVersionUID. */
	private static final long serialVersionUID = 2584075607665935566L;

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy