biz.ostw.fsi.orm.hibernate.xml.Id.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fsi Show documentation
Show all versions of fsi Show documentation
File structure investigation project
package biz.ostw.fsi.orm.hibernate.xml
import biz.ostw.fsi.orm.hibernate.xml.attr._
import biz.ostw.fsi.xml.{ElementPart, WrapperPartWithAttributes}
/**
* @author mathter (c) 2017.
*/
class Id(elementPart: ElementPart)
extends WrapperPartWithAttributes(elementPart)
with AName
with ANode
with AAccess
with AColumn
with AType
with ALength {
def generator(): String = {
this.elementPart
.getByType[ElementPart]
.find(e => Id.elem_generator.equals(e.name))
.map(_.attribute(Id.attr_generator_class)).orNull
}
}
object Id {
val elem_id = "id"
val elem_generator = "generator"
val attr_generator_class = "class"
}