DDD Templates

Xtend based domain-driven design (DDD) code generation templates for use with SrcGen4J

Лицензия

Лицензия

Группа

Группа

org.fuin.dsl.ddd
Идентификатор

Идентификатор

ddd-templates
Последняя версия

Последняя версия

0.1.0
Дата

Дата

Тип

Тип

jar
Описание

Описание

DDD Templates
Xtend based domain-driven design (DDD) code generation templates for use with SrcGen4J
Организация-разработчик

Организация-разработчик

fuin.org (Germany)
Система контроля версий

Система контроля версий

https://github.com/fuinorg/ddd-templates/

Скачать ddd-templates

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/org.fuin.dsl.ddd/ddd-templates/ -->
<dependency>
    <groupId>org.fuin.dsl.ddd</groupId>
    <artifactId>ddd-templates</artifactId>
    <version>0.1.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.fuin.dsl.ddd/ddd-templates/
implementation 'org.fuin.dsl.ddd:ddd-templates:0.1.0'
// https://jarcasting.com/artifacts/org.fuin.dsl.ddd/ddd-templates/
implementation ("org.fuin.dsl.ddd:ddd-templates:0.1.0")
'org.fuin.dsl.ddd:ddd-templates:jar:0.1.0'
<dependency org="org.fuin.dsl.ddd" name="ddd-templates" rev="0.1.0">
  <artifact name="ddd-templates" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.fuin.dsl.ddd', module='ddd-templates', version='0.1.0')
)
libraryDependencies += "org.fuin.dsl.ddd" % "ddd-templates" % "0.1.0"
[org.fuin.dsl.ddd/ddd-templates "0.1.0"]

Зависимости

compile (8)

Идентификатор библиотеки Тип Версия
org.fuin.dsl.ddd : org.fuin.dsl.ddd jar 0.3.0
org.eclipse.xtend : org.eclipse.xtend.lib jar 2.12.0
org.eclipse.xtend : org.eclipse.xtend.core jar 2.12.0
org.eclipse.emf : org.eclipse.emf.ecore jar 2.11.2
org.eclipse.emf : org.eclipse.emf.ecore.change jar 2.11.0
org.fuin.srcgen4j : srcgen4j-core jar 0.4.0
org.fuin : objects4j jar 0.6.4
javax.validation : validation-api jar 1.1.0.Final

test (13)

Идентификатор библиотеки Тип Версия
org.fuin.esc : esc-spi jar 0.2.0
junit : junit jar 4.12
org.easytesting : fest-assert jar 1.4
org.fuin.dsl.ddd : org.fuin.dsl.ddd.tests jar 0.3.0
org.eclipse.xtext : org.eclipse.xtext.testing jar 2.12.0
org.fuin : units4j jar 0.8.2
javax.enterprise : cdi-api jar 1.2
org.fuin : ddd-4-java jar 0.1.0
joda-time : joda-time jar 2.8.1
org.hibernate.javax.persistence : hibernate-jpa-2.1-api jar 1.0.0.Final
javax.json.bind : javax.json.bind-api jar 1.0
org.eclipse : yasson jar 1.0
org.glassfish : javax.json jar 1.1

Модули Проекта

Данный проект не имеет модулей.

ddd-templates

Xtend based domain-driven design (DDD) code generation templates for use with SrcGen4J

Build Status Maven Central LGPLv3 License Java Development Kit 1.8

What is this?

The project provides several artifact factories that can be used to generate code using SrcGen4J: srcgen4j-common / srcgen4j-core / srcgen4j-maven from an Xtext based DDD DSL model.

An artifact factory is a piece of code that creates an artifact for a given model element. The result is Java code based on utility classes defined in the ddd-4-java project.

Aggregate Factories

Factories generating code based on the the 'aggregate' model element.

Factory Name Reference Description Example
AbstractAggregateArtifactFactory AbstractAggregateRoot Abstract aggregate root Java class. AbstractAggregateA
FinalAggregateArtifactFactory - Final aggregate root Java source extending the above abstract class. AggregateA
AggregateDocArtifactFactory - HTML file with a description of the aggregate. -
ESJpaEventArtifactFactory JpaStreamEvent JPA entity that stores all events of an aggregate type. -
ESJpaEventIdArtifactFactory - JPA key for an event that is based on the aggregate identifier and version number. -
ESJpaLiquibaseXmlArtifactFactory - Liquibase XML databaseChangeLog that creates all necessary tables for the aggregates. -
ESJpaStreamArtifactFactory JpaStream JPA entity for storing the aggregate stream itself (not the events). -
ESRepositoryArtifactFactory EventStoreRepository Event store based repository for a single aggregate type. AggregateCRepository
ESRepositoryFactoryArtifactFactory - Creates a CDI based producer that creates above event store repsoitory. AggregateCRepositoryFactory

For an explanation of the generated event store commons JPA types, see the documentation.

See source code.

Aggregate ID Factories

Factories generating code based on the the 'aggregate-id' model element.

Factory Name Reference Description Example
AbstractAggregateIdArtifactFactory AggregateRootId Abstract aggregate root identifier Java class. AbstractMyAggregateId
FinalAggregateIdArtifactFactory - Final aggregate root identifier Java source extending the above abstract class. MyAggregateId
AggregateIdArtifactFactory AggregateRootId Aggregate root identifier Java class (Not splitted into 'abstract' and 'final' parts). MyAggregateId
AggregateIdConverterArtifactFactory - Aggregate root identifier converter for JPA/JAXB/JSONB. MyAggregateIdConverter
AggregateIdStreamFactoryArtifactFactory IdStreamFactory Warning OUTDATED - Needs to be reworked. Example
SimpleAggregateIdArtifactFactory AggregateRootUuid UUID based aggregate root identifier Java class. MyAggregate5Id

See source code.

Constraint Factories

Work in progress See source code.

Entity Factories

Work in progress See source code.

Entity ID Factories

Work in progress See source code.

Enum Object Factories

Work in progress See source code.

Event Factories

Work in progress See source code.

Exception Factories

Work in progress See source code.

Resource Set Factories

Work in progress See source code.

Service Factories

Work in progress See source code.

Value Object Factories

Work in progress See source code.


Snapshots

Snapshots can be found on the OSS Sonatype Snapshots Repository.

Add the following to your .m2/settings.xml to enable snapshots in your Maven build:

<repository>
    <id>sonatype.oss.snapshots</id>
    <name>Sonatype OSS Snapshot Repository</name>
    <url>http://oss.sonatype.org/content/repositories/snapshots</url>
    <releases>
        <enabled>false</enabled>
    </releases>
    <snapshots>
        <enabled>true</enabled>
    </snapshots>
</repository>
org.fuin.dsl.ddd

fuin.org

Версии библиотеки

Версия
0.1.0