Source code: org/hibernate/proxy/map/MapLazyInitializer.java
1 //$Id: MapLazyInitializer.java 9210 2006-02-03 22:15:19Z steveebersole $
2 package org.hibernate.proxy.map;
3
4 import java.io.Serializable;
5 import java.util.Map;
6
7 import org.hibernate.engine.SessionImplementor;
8 import org.hibernate.proxy.AbstractLazyInitializer;
9
10 /**
11 * Lazy initializer for "dynamic-map" entity representations.
12 *
13 * @author Gavin King
14 */
15 public class MapLazyInitializer extends AbstractLazyInitializer implements Serializable {
16
17 MapLazyInitializer(String entityName, Serializable id, SessionImplementor session) {
18 super(entityName, id, session);
19 }
20
21 public Map getMap() {
22 return (Map) getImplementation();
23 }
24
25 public Class getPersistentClass() {
26 throw new UnsupportedOperationException("dynamic-map entity representation");
27 }
28
29 }