Can we assign an attribute name for a Class even that attribute is a column in a different table? <p>Ok, here is my DB</p> <pre> Member Table memberID- Name -... 1 - Tom 2 - Mary ... Event table eventID - address 1 - 122NY... 2 - 23 Cali ... PaidMember table orderNumber - eventID - memberID 1 - 1 - 2 1 - 1 - 3 .. </pre> <p>Note: each Event can have many members and each members can be in many event. However, only PaidMember is allowed to participate an event.</p> <p>SO, here is how I design classes:</p> <pre><code>public class Member{ private String name; private int memberID; //all Set and Get methods here } public class Event{ private int eventID; private String address; //all set and get methods here } </code></pre> <p>My question is that, can I put <code>private int orderNumber</code> into Member? but the <code>orderNumber</code> is depended on a particular event</p> <pre><code> public class Member{ private String name; private int memberID; private int orderNumber; //all Set and Get methods here } </code></pre> <p>or should I create PaidMember class? I am thinking to do like this but not sure if it is ok</p> <pre><code> public class PaidMember{ private Member member; private Event event; private int orderNumber; //all Set and Get methods here } </code></pre>