com.jwebmp.entityassist.injections.bigdecimal.BigDecimalToDoubleIDMapping Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of entity-assist Show documentation
Show all versions of entity-assist Show documentation
A Domain Driven SQL Builder Generator for JPMS/JDK8
package com.jwebmp.entityassist.injections.bigdecimal;
import com.jwebmp.entityassist.services.EntityAssistIDMapping;
import java.math.BigDecimal;
/**
* Maps Big Decimals ID Returned Types
*/
public class BigDecimalToDoubleIDMapping
extends EntityAssistIDMapping
{
@Override
public Double toObject(BigDecimal dbReturned)
{
return dbReturned.doubleValue();
}
}