Code example for ElementWrapper

0
		if ( !isEmbeddedInXML ) { 
			getIdentifierType(factory).setToXMLNode(node, value, factory); 
		} 
		else { 
			Element elt = (Element) value; 
			replaceNode( node, new ElementWrapper(elt) ); 
		} 
	} 
 
	public String getOnCondition(String alias, SessionFactoryImplementor factory, Map enabledFilters) 
	throws MappingException { 
		if ( isReferenceToPrimaryKey() ) { //TODO: this is a bit arbitrary, expose a switch to the user? 
			return ""; 
		} 
		else { 
			return getAssociatedJoinable( factory ).filterFragment( alias, enabledFilters ); 
		} 
	} 
 
	/** 
Connect your IDE to all the code out there  Get Codota for Java