
org.hibernate.jpa.internal.metamodel.MapMember Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hibernate-entitymanager
Show all versions of hibernate-entitymanager
A module of the Hibernate O/RM project
/*
* Hibernate, Relational Persistence for Idiomatic Java
*
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
* See the lgpl.txt file in the root directory or .
*/
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
*/
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;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy