Domain Values


License

License

Categories

Categories

Doma Data ORM
GroupId

GroupId

com.qoomon
ArtifactId

ArtifactId

domainvalue
Last Version

Last Version

5.1.0
Release Date

Release Date

Type

Type

jar
Description

Description

Domain Values
Domain Values
Project URL

Project URL

https://github.com/qoomon/domain-value
Source Code Management

Source Code Management

https://github.com/qoomon/domain-value.git

Download domainvalue

How to add to project

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

Dependencies

compile (1)

Group / Artifact Type Version
com.squareup : javapoet jar 1.9.0

test (1)

Group / Artifact Type Version
junit : junit jar 4.12

Project Modules

There are no modules declared in this project.

domain-value

Build Status

Known Vulnerabilities

Maven Central

Maven Dependency

<dependency>
    <groupId>com.qoomon</groupId>
    <artifactId>domainvalue</artifactId>
    <version>LATEST</version>
</dependency>

Example: BankAccountNumber

import com.qoomon.domainvalue.type.LongDV;

public class BankAccount extends LongDV {

    protected BankAccount(Long value) {
        super(value);
    }

    @FactoryMethod
    public static BankAccount of(Long value) {
        return new BankAccount(value);
    }

    /**
    * rember to call the super validation method first
    */
    @ValidationMethod
    public static boolean isValid(Long value) {
        return LongDV.isValid(value)
            && value > 1000000;
    }
}

Versions

Version
5.1.0
5.0.0
4.0.0
3.0.1
3.0.0
2.0.0
1.0.0