/* * Copyright 2001-2008 Geert Bevin <gbevin[remove] at uwyn dot com> * Licensed under the Apache License, Version 2.0 (the "License") * $Id: UnsupportedManyToManyPropertyTypeException.java 3918 2008-04-14 17:35:35Z gbevin $ */ package com.uwyn.rife.database.querymanagers.generic.exceptions; import com.uwyn.rife.database.exceptions.DatabaseException; public class UnsupportedManyToManyPropertyTypeException extends DatabaseException { private Class mBeanClass; private String mPropertyName; private Class mType; static final long serialVersionUID = 5410505485182682128L; public UnsupportedManyToManyPropertyTypeException(Class beanClass, String propertyName, Class type) { super("The bean '"+beanClass.getName()+"' declares a many-to-many relationship on property '"+propertyName+"', however the property's type '"+type.getName()+"' is not supported. Only java.util.Collection, java.util.Set and java.util.List can be used."); mBeanClass = beanClass; mPropertyName = propertyName; mType = type; } public Class getBeanClass() { return mBeanClass; } public String getPropertyName() { return mPropertyName; } public Class getType() { return mType; } }