package org.hibernate.jpa.internal.metamodel;

import java.lang.reflect.Member;
import java.lang.reflect.Modifier;

Acts as a virtual Member definition for dynamic (Map-based) models.
Author:Brad Koehn
/** * Acts as a virtual Member definition for dynamic (Map-based) models. * * @author Brad Koehn */
public class MapMember implements Member { private String name; private final Class<?> type; public MapMember(String name, Class<?> type) { this.name = name; this.type = type; } public Class<?> getType() { return type; } public int getModifiers() { return Modifier.PUBLIC; } public boolean isSynthetic() { return false; } public String getName() { return name; } public Class<?> getDeclaringClass() { return null; } }