Mappings

org.beangle.data.orm.Mappings
final class Mappings(val database: Database, val profiles: Profiles) extends Logging

Attributes

Graph
Supertypes
trait Logging
class Object
trait Matchable
class Any

Members list

Concise view

Value members

Constructors

def this(database: Database, ormLocations: List[URL])

Concrete methods

def addCollection(definition: Collection): Mappings.this.type
def addType(name: String, clazz: String, params: Map[String, String]): Unit
def autobind(): Unit
def autobind(cls: Class[_], entityName: String, manifest: BeanInfo): OrmEntityType
def cache(em: OrmEntityType, region: String, usage: String): Mappings.this.type
def cacheAll(em: OrmEntityType, region: String, usage: String): Mappings.this.type
def collections: Iterable[Collection]
def columnName(clazz: Class[_], propertyName: String, key: Boolean): String

Attributes

key

表示是否是一个外键

def getEntity(clazz: Class[_]): OrmEntityType
def newRefColumn(clazz: Class[_], entityName: String): Column
def refEntity(clazz: Class[_], entityName: String): OrmEntityType

Concrete fields

val classTypes: HashMap[Class[_], OrmEntityType]

all type mappings(clazz -> Entity)

all type mappings(clazz -> Entity)

Attributes

val collectMap: HashMap[String, Collection]

Classname.property -> Collection

Classname.property -> Collection

Attributes

val database: Database
val entityTypes: Map[String, OrmEntityType]

Only entities

Only entities

Attributes

val enumTypes: HashSet[String]

Buildin enum types

Buildin enum types

Attributes

var locale: Locale
var sqlTypeMapping: SqlTypeMapping
val typeDefs: HashMap[String, TypeDef]

custome types

custome types

Attributes

val valueTypes: HashSet[Class[_]]

Buildin value types

Buildin value types

Attributes

Inherited fields

protected val logger: Logger

Attributes

Inherited from:
Logging