class CapicuaGen::Melchior::EntityFieldSchema

Extiende la clase Entity field Schema que representa una entidad de negocio con funcionalidad para convertirse sus propiedades a tipos simples de Java.

Public Instance Methods

java_type() click to toggle source
# File lib/CapicuaGenBalthazar/Entities/AndyEntity/Source/entity_field_schema.rb, line 33
def java_type

  case @type.upcase
    when "SMALLINT"
      return "Int16"
    when "INTEGER", "INT"
      return "int"
    when "DECIMAL", "REAL", "MONEY"
      return "decimal"
    when "CHAR", "VARCHAR", "NCHAR", "NVARCHAR"
      return "String"
    when "DATE", "DATETIME"
      return "DateTime"
    when "BIT"
      return "bool"
    else
      return "object"
  end
end