MResourceType:

* added serialVersionUID
* added @Override annotation
This commit is contained in:
teo_sarca 2008-09-03 20:56:17 +00:00
parent be7554be13
commit 53bc5e47c4
1 changed files with 5 additions and 9 deletions

View File

@ -33,6 +33,7 @@ import org.compiere.util.CCache;
*/ */
public class MResourceType extends X_S_ResourceType public class MResourceType extends X_S_ResourceType
{ {
private static final long serialVersionUID = 1L;
/** Cache */ /** Cache */
private static CCache<Integer, MResourceType> s_cache = new CCache<Integer, MResourceType>(Table_Name, 20); private static CCache<Integer, MResourceType> s_cache = new CCache<Integer, MResourceType>(Table_Name, 20);
@ -77,17 +78,11 @@ public class MResourceType extends X_S_ResourceType
super(ctx, rs, trxName); super(ctx, rs, trxName);
} // MResourceType } // MResourceType
@Override
/**
* After Save
* @param newRecord new
* @param success success
* @return true
*/
protected boolean afterSave (boolean newRecord, boolean success) protected boolean afterSave (boolean newRecord, boolean success)
{ {
if (!success) if (!success)
return success; return false;
// Update Products // Update Products
if (!newRecord) if (!newRecord)
@ -99,11 +94,12 @@ public class MResourceType extends X_S_ResourceType
{ {
MProduct product = products[i]; MProduct product = products[i];
if (product.setResource(this)) if (product.setResource(this))
{
product.saveEx(get_TrxName()); product.saveEx(get_TrxName());
} }
} }
}
return success; return success;
} // afterSave } // afterSave
} // MResourceType } // MResourceType