ycrao / ddl-to-object Goto Github PK
View Code? Open in Web Editor NEWDDL to Object
License: MIT License
DDL to Object
License: MIT License
You can clean them by yourself or using some tool like gofmt
.
Date
,Time
and BigDecimal
is unnecessary imports.
package com.example.sample.domain.entity;
import com.fasterxml.jackson.databind.PropertyNamingStrategies;
import com.fasterxml.jackson.databind.annotation.JsonNaming;
import lombok.Data;
import java.io.Serializable;
import java.sql.Date;
import java.sql.Timestamp;
import java.sql.Time;
import java.math.BigDecimal;
/**
* AdminRole admin_roles
* generated by ddl-to-object <https://github.com/ycrao/ddl-to-object>
*
* @author unknown
*/
@JsonNaming(PropertyNamingStrategies.SnakeCaseStrategy.class)
@Data
@SuppressWarnings("unused")
public class AdminRole implements Serializable {
private static final long serialVersionUID = 8422171222212742938L;
/**
* id id
*/
private Integer id;
/**
* name name
*/
private String name;
/**
* slug slug
*/
private String slug;
/**
* createdAt created_at
*/
private Timestamp createdAt;
/**
* updatedAt updated_at
*/
private Timestamp updatedAt;
}
This is a bug of github.com/jinzhu/inflection. see lib/str_singular_test.go .
leaves
's singular case should be leaf
but got leafe
by infection lib.
As best practice mentioned, you need have a good-designed pattern in MySQL DDL. such as using singular nouns as table and column name, naming in snake_case
style, with more comments, no table prefix, having a primary key etc.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.