mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
40 lines
755 B
Java
40 lines
755 B
Java
package io.ebeaninternal.xmapping.api;
|
|
|
|
import java.util.ArrayList;
|
|
import java.util.List;
|
|
|
|
/**
|
|
* External mapping for an Entity.
|
|
*/
|
|
public class XmapEntity {
|
|
|
|
protected final String clazz;
|
|
protected final List<XmapNamedQuery> namedQuery = new ArrayList<>();
|
|
protected final List<XmapRawSql> rawSql = new ArrayList<>();
|
|
|
|
public XmapEntity(String clazz) {
|
|
this.clazz = clazz;
|
|
}
|
|
|
|
/**
|
|
* Return the entity class.
|
|
*/
|
|
public String getClazz() {
|
|
return clazz;
|
|
}
|
|
|
|
/**
|
|
* Return the named queries for this entity.
|
|
*/
|
|
public List<XmapNamedQuery> getNamedQuery() {
|
|
return namedQuery;
|
|
}
|
|
|
|
/**
|
|
* Return the named raw sql queries for this entity.
|
|
*/
|
|
public List<XmapRawSql> getRawSql() {
|
|
return rawSql;
|
|
}
|
|
}
|