com.kenshoo.pl.entity.EntityCreateResult Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of persistence-layer Show documentation
Show all versions of persistence-layer Show documentation
A Java persistence layer based on JOOQ for high performance and business flow support.
package com.kenshoo.pl.entity;
import java.util.Collections;
public class EntityCreateResult, ID extends Identifier> extends EntityChangeResult> {
public EntityCreateResult(CreateEntityCommand command) {
this(command, Collections.emptyList());
}
public EntityCreateResult(CreateEntityCommand command, Iterable errors) {
super(command, errors);
}
@Override
public ID getIdentifier() {
// You'll have to believe us
//noinspection unchecked
return (ID) getCommand().getIdentifier();
}
}