Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /* 
  * DNet eBusiness Suite
  * Copyright: Nan21 Electronics SRL. All rights reserved.
  * Use is subject to license terms.
  */
 package net.nan21.dnet.module.fi.asset.ds.converter;
 
public class AmortizationDsConv
		extends
		implements
			boolean isInsertthrows Exception {
		if (ds.getAssetId() != null) {
			if (e.getAsset() == null
					|| !e.getAsset().getId().equals(ds.getAssetId())) {
				e.setAsset((Assetthis..find(Asset.classds.getAssetId()));
			}
else {
			this.lookup_asset_Asset(dse);
		}
	}
			throws Exception {
		if (ds.getAsset() != null && !ds.getAsset().equals("")) {
			Asset x = null;
			try {
catch (javax.persistence.NoResultException exception) {
				throw new Exception(
						"Invalid value provided to find `Asset` reference: `asset` = "
ds.getAsset() + "");
			}
			e.setAsset(x);
else {
			e.setAsset(null);
		}
	}
New to GrepCode? Check out our FAQ X