Sha256: 6ae2da3e3af6c763f6fc3c75786e42bf8973409bf4a971dba02bf628771d80a2
Contents?: true
Size: 751 Bytes
Versions: 6
Compression:
Stored size: 751 Bytes
Contents
module Crudboy module Helper def lombok <<~EOF.chomp import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Data; import lombok.NoArgsConstructor; @Data @Builder(toBuilder = true) @AllArgsConstructor @NoArgsConstructor EOF end def column_names_list columns.map do |column| format('`%s`', column.name) end.join(', ') end def insert_values_list columns.map do |column| column.mybatis_value_expression end.join(', ') end def batch_insert_values_list columns.map do |column| format('#{item.%s,jdbcType=%s}', column.lower_camel_name, column.jdbc_type) end.join(', ') end end end
Version data entries
6 entries across 6 versions & 1 rubygems