All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.nan21.dnet.module.bd.uom.ds.model.UomConversionDs Maven / Gradle / Ivy

The newest version!
/* 
 * DNet eBusiness Suite
 * Copyright: 2010-2013 Nan21 Electronics SRL. All rights reserved.
 * Use is subject to license terms.
 */
package net.nan21.dnet.module.bd.uom.ds.model;

import net.nan21.dnet.core.api.annotation.Ds;
import net.nan21.dnet.core.api.annotation.DsField;
import net.nan21.dnet.core.api.annotation.Param;
import net.nan21.dnet.core.api.annotation.RefLookup;
import net.nan21.dnet.core.api.annotation.RefLookups;
import net.nan21.dnet.core.presenter.model.base.AbstractAuditableDs;
import net.nan21.dnet.module.bd.uom.domain.entity.Uom;
import net.nan21.dnet.module.bd.uom.domain.entity.UomConversion;

@Ds(entity = UomConversion.class)
@RefLookups({
		@RefLookup(refId = UomConversionDs.f_sourceId, namedQuery = Uom.NQ_FIND_BY_CODE, params = {@Param(name = "pCode", field = UomConversionDs.f_sourceCode)}),
		@RefLookup(refId = UomConversionDs.f_targetId, namedQuery = Uom.NQ_FIND_BY_CODE, params = {@Param(name = "pCode", field = UomConversionDs.f_targetCode)})})
public class UomConversionDs extends AbstractAuditableDs {

	public static final String f_sourceId = "sourceId";
	public static final String f_sourceCode = "sourceCode";
	public static final String f_targetId = "targetId";
	public static final String f_targetCode = "targetCode";
	public static final String f_multiplyWith = "multiplyWith";
	public static final String f_divideTo = "divideTo";
	public static final String f_active = "active";

	@DsField(join = "left", path = "source.id")
	private Long sourceId;

	@DsField(join = "left", path = "source.code")
	private String sourceCode;

	@DsField(join = "left", path = "target.id")
	private Long targetId;

	@DsField(join = "left", path = "target.code")
	private String targetCode;

	@DsField
	private Float multiplyWith;

	@DsField
	private Float divideTo;

	@DsField
	private Boolean active;

	public UomConversionDs() {
		super();
	}

	public UomConversionDs(UomConversion e) {
		super(e);
	}

	public Long getSourceId() {
		return this.sourceId;
	}

	public void setSourceId(Long sourceId) {
		this.sourceId = sourceId;
	}

	public String getSourceCode() {
		return this.sourceCode;
	}

	public void setSourceCode(String sourceCode) {
		this.sourceCode = sourceCode;
	}

	public Long getTargetId() {
		return this.targetId;
	}

	public void setTargetId(Long targetId) {
		this.targetId = targetId;
	}

	public String getTargetCode() {
		return this.targetCode;
	}

	public void setTargetCode(String targetCode) {
		this.targetCode = targetCode;
	}

	public Float getMultiplyWith() {
		return this.multiplyWith;
	}

	public void setMultiplyWith(Float multiplyWith) {
		this.multiplyWith = multiplyWith;
	}

	public Float getDivideTo() {
		return this.divideTo;
	}

	public void setDivideTo(Float divideTo) {
		this.divideTo = divideTo;
	}

	public Boolean getActive() {
		return this.active;
	}

	public void setActive(Boolean active) {
		this.active = active;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy