You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1. Parsing individual statements using Jsql parser
2. Fix issues related to field names in OneToMany mappings
3. Remove @GeneratedValue for shared primary Keys
4. Support for Enum type and UUID
5. Removing the DEFAULT constraint from handling it.
Copy file name to clipboardExpand all lines: README.md
+10-4Lines changed: 10 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -1,12 +1,14 @@
1
1
# sqlscript2jpa-codegen
2
2
3
-
A Java library to generate Lombok wired JPA entities from DDL statements. The library offers both a maven plugin and a jar to be run as a standalone tool. It internally uses JSqlParser to parse the DDL statements.
3
+
A Java library to generate Lombok wired JPA entities from DDL statements. The library offers both a maven plugin and a
4
+
jar to be run as a standalone tool. It internally uses JSqlParser to parse the DDL statements.
4
5
5
6
### Getting Started
6
7
7
8
## Maven
8
9
9
-
**sqlscript2jpa-codegen** is available at [Maven Central Repository](https://central.sonatype.com/artifact/io.github.ngbsn/sqlscript2jpa-codegen-maven-plugin).
10
+
**sqlscript2jpa-codegen** is available
11
+
at [Maven Central Repository](https://central.sonatype.com/artifact/io.github.ngbsn/sqlscript2jpa-codegen-maven-plugin).
10
12
To use it, simply declare the following plugin in your pom file:
11
13
12
14
```xml
@@ -29,6 +31,7 @@ To use it, simply declare the following plugin in your pom file:
29
31
</executions>
30
32
</plugin>
31
33
```
34
+
32
35
**sqlFilePath**: Path to the SQL file containing the DDL statements.
33
36
34
37
**packageName**: The package name for the generated entities.
@@ -37,9 +40,12 @@ By default, the source code will be generated under `target/generated-sources/sq
37
40
38
41
## Standalone
39
42
40
-
Get the jar from https://repo1.maven.org/maven2/io/github/ngbsn/sqlscript2jpa-codegen-maven-plugin/1.0.4/sqlscript2jpa-codegen-maven-plugin-1.0.4-standalone.jar
43
+
Get the jar
44
+
from https://repo1.maven.org/maven2/io/github/ngbsn/sqlscript2jpa-codegen-maven-plugin/1.0.4/sqlscript2jpa-codegen-maven-plugin-1.0.4-standalone.jar
0 commit comments