mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
#2075 - Refactor external mapping (i.e. named queries from ebean.xml etc) - extract api and separate module
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user