Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update MemberShip.java #28

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,48 +1,57 @@
package com.spring.app;

public class MemberShip {
private int membershipId;
private String membershipType;
private int visitsPerYear;
private Customer customer;

public MemberShip(int membershipId, String membershipType, int visitsPerYear, Customer customer) {
super();
this.membershipId = membershipId;
this.membershipType = membershipType;
this.visitsPerYear = visitsPerYear;
this.customer = customer;
}

public int getMembershipId() {
return membershipId;
}

public void setMembershipId(int membershipId) {
this.membershipId = membershipId;
}

public String getMembershipType() {
return membershipType;
}

public void setMembershipType(String membershipType) {
this.membershipType = membershipType;
}

public int getVisitsPerYear() {
return visitsPerYear;
}

public void setVisitsPerYear(int visitsPerYear) {
this.visitsPerYear = visitsPerYear;
}

public Customer getCustomer() {
return customer;
}

public void setCustomer(Customer customer) {
this.customer = customer;
}
private int membershipId;
private String membershipType;
private int visitsPerYear;
private Customer customer;

public MemberShip(int membershipId, String membershipType, int visitsPerYear, Customer customer) {
this.membershipId = membershipId;
this.membershipType = membershipType;
this.visitsPerYear = visitsPerYear;
this.customer = customer;
}

public int getMembershipId() {
return membershipId;
}

public void setMembershipId(int membershipId) {
this.membershipId = membershipId;
}

public String getMembershipType() {
return membershipType;
}

public void setMembershipType(String membershipType) {
this.membershipType = membershipType;
}

public int getVisitsPerYear() {
return visitsPerYear;
}

public void setVisitsPerYear(int visitsPerYear) {
this.visitsPerYear = visitsPerYear;
}

public Customer getCustomer() {
return customer;
}

public void setCustomer(Customer customer) {
this.customer = customer;
}

@Override
public String toString() {
return "MemberShip{" +
"membershipId=" + membershipId +
", membershipType='" + membershipType + '\'' +
", visitsPerYear=" + visitsPerYear +
", customer=" + customer +
'}';
}
}