1 package org.hibernate.persister.collection; 3 4 import org.hibernate.MappingException; 5 import org.hibernate.engine.Mapping; 6 import org.hibernate.persister.entity.AbstractPropertyMapping; 7 import org.hibernate.type.AbstractComponentType; 8 import org.hibernate.type.Type; 9 10 13 public class CompositeElementPropertyMapping extends AbstractPropertyMapping { 14 15 private final AbstractComponentType compositeType; 16 17 public CompositeElementPropertyMapping( 18 String [] elementColumns, 19 String [] elementFormulaTemplates, 20 AbstractComponentType compositeType, 21 Mapping factory) 22 throws MappingException { 23 24 this.compositeType = compositeType; 25 26 initComponentPropertyPaths(null, compositeType, elementColumns, elementFormulaTemplates, factory); 27 28 } 29 30 public Type getType() { 31 return compositeType; 32 } 33 34 protected String getEntityName() { 35 return compositeType.getName(); 36 } 37 38 } | Popular Tags |