package kz.cafe.db.model;

import kz.cafe.constants.*;
import kz.cafe.db.model.anotations.*;
import com.google.code.morphia.annotations.*;



@Entity(value="OrderItem", noClassnameStored=true, concern = "SAFE")
public class MOrderItem extends MAbstractEditableDataElement{
   private static final long serialVersionUID = 827759302170084517L;
   
   
   public static final String F_OID = "OID";
   public static final String F_MID = "MID";

   @AnnotationRelated(foreign = MOrder.class)
   public int OID;
   
   @AnnotationRelated(foreign = MCourse.class)
   public int MID;
   public int quantity;
   
   @AnnotationPrice
   public int price;
   
   
   
   
   public String humanReadable(InterfaceConstants.LANGS lang){
      return "Часть Заказа N " + ID;
   }
}
 


