Java Code Examples for org.hibernate.mapping.Component#setComponentClassName()

The following examples show how to use org.hibernate.mapping.Component#setComponentClassName() . These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
public static Component createComponent(
		PropertyHolder propertyHolder,
		PropertyData inferredData,
		boolean isComponentEmbedded,
		boolean isIdentifierMapper,
		MetadataBuildingContext context) {
	Component comp = new Component( context, propertyHolder.getPersistentClass() );
	comp.setEmbedded( isComponentEmbedded );
	comp.setTable( propertyHolder.getTable() );
	//FIXME shouldn't identifier mapper use getClassOrElementName? Need to be checked.
	if ( isIdentifierMapper || ( isComponentEmbedded && inferredData.getPropertyName() == null ) ) {
		comp.setComponentClassName( comp.getOwner().getClassName() );
	else {
		comp.setComponentClassName( inferredData.getClassOrElementName() );
	return comp;