DDL Generator: Multi Project Sample Reactor

A maven plugin to generate DDL file from a JPA+Hibernate project.

License

License

Categories

Categories

Maven Build Tools Net React User Interface Web Frameworks Reactor Container Microservices Reactive libraries
GroupId

GroupId

net.ggtools.maven
ArtifactId

ArtifactId

ddlgenerator-samples-multi-reactor
Last Version

Last Version

0.1
Release Date

Release Date

Type

Type

pom
Description

Description

DDL Generator: Multi Project Sample Reactor
A maven plugin to generate DDL file from a JPA+Hibernate project.

Download ddlgenerator-samples-multi-reactor

How to add to project

<!-- https://jarcasting.com/artifacts/net.ggtools.maven/ddlgenerator-samples-multi-reactor/ -->
<dependency>
    <groupId>net.ggtools.maven</groupId>
    <artifactId>ddlgenerator-samples-multi-reactor</artifactId>
    <version>0.1</version>
    <type>pom</type>
</dependency>
// https://jarcasting.com/artifacts/net.ggtools.maven/ddlgenerator-samples-multi-reactor/
implementation 'net.ggtools.maven:ddlgenerator-samples-multi-reactor:0.1'
// https://jarcasting.com/artifacts/net.ggtools.maven/ddlgenerator-samples-multi-reactor/
implementation ("net.ggtools.maven:ddlgenerator-samples-multi-reactor:0.1")
'net.ggtools.maven:ddlgenerator-samples-multi-reactor:pom:0.1'
<dependency org="net.ggtools.maven" name="ddlgenerator-samples-multi-reactor" rev="0.1">
  <artifact name="ddlgenerator-samples-multi-reactor" type="pom" />
</dependency>
@Grapes(
@Grab(group='net.ggtools.maven', module='ddlgenerator-samples-multi-reactor', version='0.1')
)
libraryDependencies += "net.ggtools.maven" % "ddlgenerator-samples-multi-reactor" % "0.1"
[net.ggtools.maven/ddlgenerator-samples-multi-reactor "0.1"]

Dependencies

compile (2)

Group / Artifact Type Version
org.slf4j : slf4j-api jar 1.7.2
org.hibernate.javax.persistence : hibernate-jpa-2.0-api jar 1.0.1.Final

provided (1)

Group / Artifact Type Version
com.github.peichhorn : lombok-pg jar 0.11.3

runtime (1)

Group / Artifact Type Version
ch.qos.logback : logback-classic jar 1.0.7

Project Modules

  • domain
  • application

DDL Generator

A Maven plugin to create DDL file from a JPA+Hibernate project.

Usage

Just add the following configuration in pom.xml:

<plugin>
	<groupId>net.ggtools.maven</groupId>
	<artifactId>ddlgenerator-maven-plugin</artifactId>
	<version>0.1</version>
	<executions>
		<execution>
			<id>make-raw-sql</id>
			<goals>
				<goal>generate</goal>
			</goals>
			<phase>prepare-package</phase>
			<configuration>
				<ddlFile>${project.build.directory}/sql/ddl.sql</ddlFile>
				<defaultSchema>MY_SCHEMA</defaultSchema>
				<dialect>org.hibernate.dialect.Oracle10gDialect</dialect>
				<namingStrategy>your.naming.Strategy</namingStrategy>
				<persistenceUnitName>MYPU</persistenceUnitName>
				<persistenceXmlLocations>
					<param>classpath*:/META-INF/persistence.xml</param>
				</persistenceXmlLocations>
				<useNewGenerator>true</useNewGenerator>
			</configuration>
		</execution>
	</executions>
</plugin>

Until more documentation is available you should have a look to the samples directory.

Versions

Version
0.1