reverse

package
v0.0.0-...-68b431c Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	JavaTypeLong                = "Long"
	JavaTypeString              = "String"
	JavaTypeBigDecimal          = "BigDecimal"
	JavaTypeBigDecimalImport    = "java.math.BigDecimal"
	JavaTypeLocalDateTime       = "LocalDateTime"
	JavaTypeLocalDateTimeImport = "java.time.LocalDateTime"
	JsonSerialize               = "com.fasterxml.jackson.databind.annotation.JsonSerialize"
	ToStringSerializer          = "com.fasterxml.jackson.databind.ser.std.ToStringSerializer"
	Size                        = "javax.validation.constraints.Size"
	Digits                      = "javax.validation.constraints.Digits"
	NotNull                     = "javax.validation.constraints.NotNull"
	NotBlank                    = "javax.validation.constraints.NotBlank"
	NotEmpty                    = "javax.validation.constraints.NotEmpty"
	SafeHtml                    = "org.hibernate.validator.constraints.SafeHtml" // @Deprecated
)
View Source
const (
	VersionTemplate = "1.0.0"
)

Variables

This section is empty.

Functions

func OnEvent

func OnEvent(args *java.Args)

Types

type Assembler

type Assembler struct {
	Name string
}

type Context

type Context struct {
	App       string
	PascalApp string
	Project   string
	Package   string
	Author    string
	Version   string
	Date      string

	*Table
	*Controller
	*Service
	*ServiceImpl
	*Repository
	*Entity
	*Dto
	*Payload
	*Query
	*Engine
	*EngineImpl
	*Assembler
}

type Controller

type Controller struct {
	Name    string
	Comment string
	Mapping string
}

type Dto

type Dto struct {
	Name    string
	Comment string
	Imports []string
	Fields  []*Field
}

type Engine

type Engine struct {
	Name         string
	Entities     []EngineEntity
	Repositories []string
	Services     []string
	Assemblers   []string
}

type EngineEntity

type EngineEntity struct {
	ServiceType    string
	ServiceName    string
	RepositoryType string
	RepositoryName string
	AssemblerType  string
	AssemblerName  string
}

type EngineImpl

type EngineImpl struct {
	Name         string
	Entities     []EngineEntity
	Repositories []string
	Services     []string
	Assemblers   []string
}

type Entity

type Entity struct {
	Name      string
	CamelName string
	Comment   string
	Imports   []string
	Fields    []*Field
}

type Field

type Field struct {
	Name          string
	Comment       string
	CommentPlain  string
	PropertyType  string
	PropertyName  string
	String        string
	Long          string
	BigDecimal    string
	Length        int
	MinBit        int
	MaxBit        int
	NotNull       bool
	PrimaryKey    bool
	NotNullCheck  bool
	NotBlankCheck bool
	NotEmptyCheck bool
}

type Payload

type Payload struct {
	Name          string
	Comment       string
	Imports       []string
	AddImports    []string
	DeleteImports []string
	UpdateImports []string
	Fields        []*Field
	AddFields     []*Field
	UpdateFields  []*Field
	DeleteFields  []*Field
}

type Query

type Query struct {
	Name    string
	Comment string
	Imports []string
	Fields  []*Field
}

type Repository

type Repository struct {
	Name    string
	Comment string
}

type Service

type Service struct {
	Name    string
	Comment string
}

type ServiceImpl

type ServiceImpl struct {
	Name    string
	Comment string
}

type Table

type Table struct {
	Name     string
	FullName string
	Comment  string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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