This project adds a wizard to ease creations of new PL entities.
- Right click on the package where you want to create the PL entity. On the menu, choose
New
->PL Entity
.
- In the dialog, fill the entity name (for Java classes) and SQL table name. Then, fill the sql fields.
- This will generate all the required classes (Jooq table, flowConfig, etc...) so you can immediately start working with PL commands.
In case the latest plugin is not yet available in the marketplace within Intellij, you can manually download it here. Then, you can install it from the disk like this:
- No relations supported yet.
- Cannot reuse the JOOQ tables already existing in the current project.
- Cannot edit existing entities (only creation flow supported).
- Add this to
~/.gradle/init.gradle
file:
maven {
url 'https://jetbrains.bintray.com/intellij-plugin-service'
}
-
Run
./gradlew build
in a command line. This will cause Gradle to cache the dependencies. It is a workaround to an IntelliJ bug when it sometimes fails to access the dependencies. -
Using IntelliJ, open the
build.gradle
file as a project. -
Run using Gradle task
runIde
(Sorry, no automatic build for this)
- Increase version number in
build.gradle
- Write some release notes in element
<change-notes>
in fileplugin.xml
- Run gradle task
buildPlugin
- Find the ZIP on
./build/distributions/pl-intellij-plugin-0.{version}.zip
- Login to https://plugins.jetbrains.com/plugin/15212-kenshoo-persistence-layer and upload the ZIP