Update of /cvsroot/hibernate/Hibernate2/src/net/sf/hibernate/mapping
In directory sc8-pr-cvs1:/tmp/cvs-serv4676/hibernate/mapping
Added Files:
Any.java
Log Message:
* fixed a bug in SQLExpression
* fixed a bug in Expression.ge()
* improved proxy handling
* fixed problems with select new
* reworked import mechanism
* added <any> mappings
--- NEW FILE: Any.java ---
package net.sf.hibernate.mapping;
import net.sf.hibernate.type.ObjectType;
import net.sf.hibernate.type.Type;
public class Any extends Value {
private Type identifierType;
public boolean isAny() {
return true;
}
/**
* Constructor for Any.
*/
public Any(Table table) {
super(table);
}
/**
* Returns the identifierType.
* @return Type
*/
public Type getIdentifierType() {
return identifierType;
}
/**
* Sets the identifierType.
* @param identifierType The identifierType to set
*/
public void setIdentifierType(Type identifierType) {
this.identifierType = identifierType;
}
public Type getType() {
return new ObjectType(identifierType);
}
public void setType(Type type) {
throw new UnsupportedOperationException("cannot set type of an Any");
}
public void setTypeByReflection(Class propertyClass, String propertyName) {}
}
|