IDEMPIERE-2699 Performance: Constant visits to database for MTable not cached

This commit is contained in:
Carlos Ruiz 2015-06-25 21:11:15 -05:00
parent 2998c976ac
commit 35f0b830a0
2 changed files with 14 additions and 2 deletions

View File

@ -48,7 +48,7 @@ public class MColumn extends X_AD_Column
/**
*
*/
private static final long serialVersionUID = -4372212315789445915L;
private static final long serialVersionUID = -7470893214933465732L;
/**
* Get MColumn from Cache
@ -830,4 +830,10 @@ public class MColumn extends X_AD_Column
}
}
@Override
public I_AD_Table getAD_Table() throws RuntimeException {
MTable table = MTable.get(getCtx(), getAD_Table_ID());
return table;
}
} // MColumn

View File

@ -25,7 +25,7 @@ public class MRefTable extends X_AD_Ref_Table
/**
*
*/
private static final long serialVersionUID = 9123965213307214868L;
private static final long serialVersionUID = 380648726485603193L;
/**
* Standard Constructor
@ -57,4 +57,10 @@ public class MRefTable extends X_AD_Ref_Table
super (ctx, rs, trxName);
} // MRefTable
@Override
public I_AD_Table getAD_Table() throws RuntimeException {
MTable table = MTable.get(getCtx(), getAD_Table_ID());
return table;
}
} // MRefTable