/*
 * Created on 03-08-2003
 *
 * To change the template for this generated file go to
 * Window - Preferences - Java - Code Generation - Code and Comments
 */
package net.sf.hibern8ide.node;

import net.sf.hibernate.metadata.ClassMetadata;

/**
 * @author MAX
 *
 * To change the template for this generated type comment go to
 * Window - Preferences - Java - Code Generation - Code and Comments
 */
public class IdentifierNode extends TypeNode {

	/**
	 * @param factory
	 * @param parent
	 * @param md
	 */
	public IdentifierNode(NodeFactory factory, BaseNode parent, ClassMetadata md) {
        super(factory, parent, md.getIdentifierType(), factory.getMetaData(md.getIdentifierType().getReturnedClass()));
        name = md.getIdentifierPropertyName();
        icon = idpropertyIcon;
	}

}
