package org.clubrockisen.dao;

import org.clubrockisen.entities.Column;
import org.clubrockisen.entities.Entity;

/**
 * Exception thrown when no Id column where found in an entity.
 * @author Alex
 */
public class NoIdException extends Exception {
	/** The serial version UID */
	private static final long				serialVersionUID	= 7697590367643799579L;
	
	/** The class which has no id column */
	private final Class<? extends Entity>	entityClass;
	
	/**
	 * Constructor #1.<br />
	 * Default constructor. Build a NoIdExcetpion with no entity class.
	 */
	public NoIdException () {
		this(Entity.class);
	}
	
	/**
	 * Constructor #2.<br />
	 * @param entityClass
	 *        the class which do not own a {@link Column} which is marked as an Id.
	 */
	public NoIdException (final Class<? extends Entity> entityClass) {
		super("Could not find id column in entity " + entityClass.getSimpleName());
		this.entityClass = entityClass;
	}
	
	/**
	 * Return the attribute entityClass.
	 * @return the attribute entityClass.
	 */
	public Class<? extends Entity> getEntityClass () {
		return entityClass;
	}
	
}

@@ -30,50 +30,8 @@
 %0D%0A%0D%0A
-import org.clubrockisen.entities.Column;%0D%0A
 impo
@@ -683,22 +683,14 @@
 n a 
-%7B@link C
+c
 olumn
-%7D
  whi

Remove unused import.