com.kenshoo.pl.entity.SingleUniqueKeyValue 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;
public class SingleUniqueKeyValue, T> extends UniqueKeyValue {
public SingleUniqueKeyValue(SingleUniqueKey uniqueKey, T val) {
super(uniqueKey, new Object[]{val});
}
public SingleUniqueKeyValue(EntityField field, T val) {
super(new SingleUniqueKey<>(field), new Object[]{val});
}
public T getId() {
//noinspection unchecked
return (T) values[0];
}
}