npm.io
0.0.4 • Published 6 years ago

generator-jhipster-snowflake

Licence
Apache-2.0
Version
0.0.4
Deps
8
Size
40 kB
Vulns
9
Weekly
0

Usage

Generate the code related to snowflake ID and convert the type of ID from Long to String.
生成与雪花 ID 相关的代码,并将 ID 的类型从 Long 转换为 String。

Installation

As this is a JHipster module, we expect you have JHipster and its related tools already installed.

This module requires Jhipster version greater than 3.0 in order to work

npm install -g generator-jhipster-snowflake

Then run the module on a JHipster generated application:

yo jhipster-snowflake

If you want don't want to answer each question you can use

yo jhipster-snowflake default

This will enable snowflakeing for all available entities (only ones created by the jhipster:entity generator) and add the snowflake log page under admin

License

MIT snowfox