Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Annotation ¶
type Annotation struct { Value string // Details is used for many-to-many relations instead of `value` for brackets content. // e.g. relation(name=manyToManyRelName,to=TargetEntity) Details map[string]*Annotation }
Annotation is a tag on a struct-field
type Field ¶
Field holds common field/property information used by specialized code parsers/generators. Additionally, it groups some shared logic, e.g. annotation processing
func CreateField ¶
func (*Field) PreProcessAnnotations ¶
func (field *Field) PreProcessAnnotations(a map[string]*Annotation) error
func (*Field) ProcessAnnotations ¶
func (field *Field) ProcessAnnotations(a map[string]*Annotation) error
ProcessAnnotations checks all set annotations for any inconsistencies and sets local/property fields (flags, name, ...)
type Object ¶
Object holds common entity information used by specialized code parsers/generators. Additionally, it groups some shared logic, e.g. annotation processing
func CreateObject ¶
func (*Object) AddRelation ¶ added in v0.10.0
func (object *Object) AddRelation(details map[string]*Annotation) (*model.StandaloneRelation, error)
func (*Object) ProcessAnnotations ¶
func (object *Object) ProcessAnnotations(a map[string]*Annotation) error
ProcessAnnotations checks all set annotations for any inconsistencies and sets local/entity properties (uid, name, ...)
Click to show internal directories.
Click to hide internal directories.