DDL Generator: Reactor for Samples

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-reactor
Last Version

Last Version

0.1
Release Date

Release Date

Type

Type

pom
Description

Description

DDL Generator: Reactor for Samples
A maven plugin to generate DDL file from a JPA+Hibernate project.

Download ddlgenerator-samples-reactor

How to add to project

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

Dependencies

compile (1)

Group / Artifact Type Version
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

Project Modules

  • singleProject
  • multiProject

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