entity

package
v0.0.0-...-4751eea Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 15, 2017 License: BSD-2-Clause Imports: 4 Imported by: 0

Documentation

Overview

*

  • WARNING: Generated code! do not change!
  • Generated by: go/Entity.ftl

*

  • WARNING: Generated code! do not change!
  • Generated by: go/Entity.ftl

*

  • WARNING: Generated code! do not change!
  • Generated by: go/Entity.ftl

*

  • WARNING: Generated code! do not change!
  • Generated by: go/Entity.ftl

*

  • WARNING: Generated code! do not change!
  • Generated by: go/Entity.ftl

*

  • WARNING: Generated code! do not change!
  • Generated by: go/Entity.ftl

Index

Constants

View Source
const ATTR_USERID = "_userid_"

Variables

This section is empty.

Functions

This section is empty.

Types

type Board

type Board struct {
	EntityAudit

	//ATTRIBUTES
	Name        *string `json:"name"`
	Description *string `json:"description"`
	// ASSOCIATIONS
	// lanes
	Lanes []*Lane `json:"lanes"`
	// users
	Users []*User `json:"users"`
}

func NewBoard

func NewBoard() *Board

func (*Board) Clone

func (this *Board) Clone() interface{}

func (*Board) Copy

func (this *Board) Copy(entity *Board)

func (*Board) Equals

func (this *Board) Equals(e interface{}) bool

func (*Board) HashCode

func (this *Board) HashCode() int

func (*Board) SetDescription

func (this *Board) SetDescription(description *string)

func (*Board) SetName

func (this *Board) SetName(name *string)

func (*Board) String

func (this *Board) String() string

type EntityAudit

type EntityAudit struct {
	app.EntityBase

	Creation           *Date  `json:"creation"`
	Modification       *Date  `json:"modification"`
	UserCreationId     *int64 `json:"userCreationId"`
	UserCreation       *User  `json:"userCreation"`
	UserModificationId *int64 `json:"userModificationId"`
	UserModification   *User  `json:"userModification"`
}

func (*EntityAudit) Copy

func (this *EntityAudit) Copy(entity EntityAudit)

type Lane

type Lane struct {
	EntityAudit

	//ATTRIBUTES
	Name     *string `json:"name"`
	Position *int64  `json:"position"`
	BoardId  *int64  `json:"boardId"`
	// ASSOCIATIONS
	// board
	Board *Board `json:"board"`
	// tasks
	Tasks []*Task `json:"tasks"`
	// notifications
	Notifications []*Notification `json:"notifications"`
}

func NewLane

func NewLane() *Lane

func (*Lane) Clone

func (this *Lane) Clone() interface{}

func (*Lane) Copy

func (this *Lane) Copy(entity *Lane)

func (*Lane) Equals

func (this *Lane) Equals(e interface{}) bool

func (*Lane) HashCode

func (this *Lane) HashCode() int

func (*Lane) SetBoardId

func (this *Lane) SetBoardId(boardId *int64)

func (*Lane) SetName

func (this *Lane) SetName(name *string)

func (*Lane) SetPosition

func (this *Lane) SetPosition(position *int64)

func (*Lane) String

func (this *Lane) String() string

type Notification

type Notification struct {
	EntityAudit

	//ATTRIBUTES
	Email  string `json:"email"`
	TaskId int64  `json:"taskId"`
	LaneId int64  `json:"laneId"`
	// ASSOCIATIONS
	// task
	Task *Task `json:"task"`
	// lane
	Lane *Lane `json:"lane"`
}

func NewNotification

func NewNotification() *Notification

func (*Notification) Clone

func (this *Notification) Clone() interface{}

func (*Notification) Copy

func (this *Notification) Copy(entity *Notification)

func (*Notification) Equals

func (this *Notification) Equals(e interface{}) bool

func (*Notification) HashCode

func (this *Notification) HashCode() int

func (*Notification) SetEmail

func (this *Notification) SetEmail(email string)

func (*Notification) SetLaneId

func (this *Notification) SetLaneId(laneId int64)

func (*Notification) SetTaskId

func (this *Notification) SetTaskId(taskId int64)

func (*Notification) String

func (this *Notification) String() string

type Role

type Role struct {
	EntityAudit

	//ATTRIBUTES
	Kind   lov.ERole `json:"kind"`
	UserId *int64    `json:"userId"`
	// ASSOCIATIONS
	// user
	User *User `json:"user"`
}

func NewRole

func NewRole() *Role

func (*Role) Clone

func (this *Role) Clone() interface{}

func (*Role) Copy

func (this *Role) Copy(entity *Role)

func (*Role) Equals

func (this *Role) Equals(e interface{}) bool

func (*Role) HashCode

func (this *Role) HashCode() int

func (*Role) SetKind

func (this *Role) SetKind(kind lov.ERole)

func (*Role) SetUserId

func (this *Role) SetUserId(userId *int64)

func (*Role) String

func (this *Role) String() string

type Task

type Task struct {
	EntityAudit

	//ATTRIBUTES
	Title     *string `json:"title"`
	Detail    *string `json:"detail"`
	HeadColor *string `json:"headColor"`
	BodyColor *string `json:"bodyColor"`
	Position  *int64  `json:"position"`
	Reference *string `json:"reference"`
	Spent     *int64  `json:"spent"`
	Remaining *int64  `json:"remaining"`
	UserId    *int64  `json:"userId"`
	LaneId    *int64  `json:"laneId"`
	// ASSOCIATIONS
	// user
	User *User `json:"user"`
	// lane
	Lane *Lane `json:"lane"`
	// notifications
	Notifications []*Notification `json:"notifications"`
}

func NewTask

func NewTask() *Task

func (*Task) Clone

func (this *Task) Clone() interface{}

func (*Task) Copy

func (this *Task) Copy(entity *Task)

func (*Task) Equals

func (this *Task) Equals(e interface{}) bool

func (*Task) HashCode

func (this *Task) HashCode() int

func (*Task) SetBodyColor

func (this *Task) SetBodyColor(bodyColor *string)

func (*Task) SetDetail

func (this *Task) SetDetail(detail *string)

func (*Task) SetHeadColor

func (this *Task) SetHeadColor(headColor *string)

func (*Task) SetLaneId

func (this *Task) SetLaneId(laneId *int64)

func (*Task) SetPosition

func (this *Task) SetPosition(position *int64)

func (*Task) SetReference

func (this *Task) SetReference(reference *string)

func (*Task) SetRemaining

func (this *Task) SetRemaining(remaining *int64)

func (*Task) SetSpent

func (this *Task) SetSpent(spent *int64)

func (*Task) SetTitle

func (this *Task) SetTitle(title *string)

func (*Task) SetUserId

func (this *Task) SetUserId(userId *int64)

func (*Task) String

func (this *Task) String() string

type User

type User struct {
	EntityAudit

	//ATTRIBUTES
	Name     *string `json:"name"`
	Username *string `json:"username"`
	Password *string `json:"password"`
	// ASSOCIATIONS
	// boards
	Boards []*Board `json:"boards"`
	// roles
	Roles []*Role `json:"roles"`
	// tasks
	Tasks []*Task `json:"tasks"`
}

func NewUser

func NewUser() *User

func (*User) Clone

func (this *User) Clone() interface{}

func (*User) Copy

func (this *User) Copy(entity *User)

func (*User) Equals

func (this *User) Equals(e interface{}) bool

func (*User) HashCode

func (this *User) HashCode() int

func (*User) SetName

func (this *User) SetName(name *string)

func (*User) SetPassword

func (this *User) SetPassword(password *string)

func (*User) SetUsername

func (this *User) SetUsername(username *string)

func (*User) String

func (this *User) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL