KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > hibernate > persister > collection > CompositeElementPropertyMapping


1 //$Id: CompositeElementPropertyMapping.java,v 1.2 2005/03/21 18:15:28 oneovthafew Exp $
2
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 /**
11  * @author Gavin King
12  */

13 public class CompositeElementPropertyMapping extends AbstractPropertyMapping {
14
15     private final AbstractComponentType compositeType;
16     
17     public CompositeElementPropertyMapping(
18             String JavaDoc[] elementColumns,
19             String JavaDoc[] 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 JavaDoc getEntityName() {
35         return compositeType.getName();
36     }
37
38 }
Popular Tags