https://github.com/mirsch/repo-pattern-generator
https://github.com/mirsch/repo-pattern-generator
database entity orm php7 phpstorm repository scripted-extension
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/mirsch/repo-pattern-generator
- Owner: mirsch
- Created: 2018-04-16T11:10:00.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-04-16T11:11:46.000Z (about 8 years ago)
- Last Synced: 2025-02-21T11:22:06.709Z (over 1 year ago)
- Topics: database, entity, orm, php7, phpstorm, repository, scripted-extension
- Language: Groovy
- Size: 110 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Repo Pattern Generator
This is a PHPStorm/IntelliJ IDEA **Scripted Extension** that generates an Entity and Repository class from one or more database tables.
## Installation
On MacOS, copy the file `src/Repo Pattern Generator.groovy` into
$HOME/Library/Preferences/PhpStorm2018.1/extensions/com.intellij.database/schema
(Adjust the path according to your product and version.)
## Running
In the **Database** view, right click a table and select **Scripted Extensions** / **Repo Pattern Generator**.

## Limitations
The generator assumes that there is a primary key on one field and this field is an auto increment integer.