#2075 - Refactor external mapping (i.e. named queries from ebean.xml etc) - extract api and separate module

This commit is contained in:
rob bygrave
2020-10-12 14:54:25 +13:00
parent f57db28f1c
commit 49b1bd54c3
52 changed files with 817 additions and 259 deletions
@@ -0,0 +1,39 @@
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;
}
}