1 package org.apache.ojb.broker; 2 3 8 public class OrderPosition implements java.io.Serializable 9 { 10 private int id; 11 private int order_id; 12 private int article_id; 13 private InterfaceArticle article; 14 15 18 public OrderPosition() 19 { 20 super(); 21 } 22 23 public OrderPosition(int pId, int pOrderId, int pArticleId) 24 { 25 id = pId; 26 order_id = pOrderId; 27 article_id = pArticleId; 28 } 29 30 35 public InterfaceArticle getArticle() 36 { 37 return article; 38 } 39 40 45 public int getArticle_id() 46 { 47 return article_id; 48 } 49 50 55 public int getId() 56 { 57 return id; 58 } 59 60 65 public int getOrder_id() 66 { 67 return order_id; 68 } 69 70 75 public void setArticle(InterfaceArticle newArticle) 76 { 77 article = newArticle; 78 } 79 80 85 public void setArticle_id(int newArticle_id) 86 { 87 article_id = newArticle_id; 88 } 89 90 95 public void setId(int newId) 96 { 97 id = newId; 98 } 99 100 105 public void setOrder_id(int newOrder_id) 106 { 107 order_id = newOrder_id; 108 } 109 110 public String toString() 111 { 112 return "" + id + ", " + article_id + ", " + article.getArticleName(); 113 } 114 } 115 | Popular Tags |